Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
As i got couple of years data and i am trying to get sales in between max(year ) to previous 3 year ,
the expression that i wrote in my bar is this
which is not bring me an appropriate output so definately i made a mistake but as for my knownledge the expression look pretty ok ,
please can any one suggest me what wrong with this expression ./..thanking you in advance
kumar
try this:
Agreed with Peter, try this:
Note: I hope Year007 contains value like 2012,2013,2015 etc
Hi,
If your data contains till today and real time approach will be like this,
Sum({<Year=, Quarter=, Month=, Week=, Date={‘>=$(=YearStart(Today(), -3))<=$(=Today())’}>} Sales )
or else with your Date field ,
Sum({<Year=, Quarter=, Month=, Week=, Date={‘>=$(=YearStart(Max(Date), -3))<=$(=Date(Max(Date)))’}>} Sales )
else year field,check this,
N-period rolling data, moving average, easy solution.
Hope this helps,
Regards,
HirisH
Watch out, Balraj. there is no upper limit in your set analysis. A set modifier will start from all values in Year007 and therefor will include 2000-2015 if you select for example 2003 in Year007.