Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Folks,
I am calculating last 3 years data by using set analysis from current year
sum({$<Year={"$(=Max(Year)-3)"}Sales)
for example I am calculating 2016 , 2017, 2018 ,2019 data. but if i select year 2017 it have to show only 2017 data if i select 2018 it have to show only 2018 but my selections are not effecting. Can some one help me how to resolve it
Thanks and Regards,
Satya
Try below
sum({$<Year*={">=$(=year(today())-3)"}Sales)
Just to clarify something, with your set analysis you are just calculating 3 years ago . For example today is 2019 -3 = 2016
This is why in the set expression suggested above you will need to use the > or delimit your year set with something like
>=$(=year(today())-3) & < year(today) in case you have also data for later years (predictive data etc)
But you lose the ability to check the L3Y from a selected date. for example I want to see 2018 -3 Years and not 2019 -3 years