I want to create a relative filter with studio in which it shows me, for example, THIS YEAR'S invoices.
I have managed to create relative filters, for example, to TODAY's date minus x days:
["&",["create_date",">=",datetime.datetime.now()-datetime.timedelta(days=365)],["create_date","<=",datetime.datetime.now() ]]
NOTE: I know that filter comes by default. But I need to create a new one that shows me the invoices for this year. I have a pivot view on my dashboard and I want it to automatically change every year. If I use that filter, the dashboard view will not change to 2023.
But I don't know how to create a filter for THIS YEAR, can you help me?
Thank you very much community!