Hi everyone, I have a top movers insight showing the MoM change in GM for the previous month and the month before (for example July to June). I got a request to change the comparison to show the previous month to YTD, I am using a relative date filter but if I change it to YTD it does not work.
Any ideas are welcome!
Curent filter:
Just figured it out!
I used minOver(min({Date (Period)}), [{Date (Period)}], POST_AGG_FILTER) for the date
and periodToDateAvg({GM %}, {date}, ‘YEAR’, addDateTime(-1, ‘MM’, now())) for the YTD GM (excluding this month.