I am using GetFieldselction function and getting the value of Filtered year using below formula.
Sum({<[MonthYear]={"$(=GetFieldSelections(MonthYear))"}>}[Total Income])/1000000 --This gives me Filtered year value correctly
Now, based on filter selction, for example if I choose filter as Oct-22, I would like to get Oct-21 values in other field.
I tried the below but it doesn't work.
Sum({<[MonthYear]={"=$=AddYears(=GetFieldSelections(MonthYear)),-1)"}>}[Total Income ])/1000000.
Can anyone please tell me how to get previous year value based on filter selection using "GetFieldselction"?