Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Experts,
I need a clarification while calculating rolling periods.
Sum({<year=,month=,quarter=,doj={'>=$(=YearStart(Today()))<=$(=Today())'}>}sales)
year=,month=,quarter=,
-Ignores the selections for year,month,quarter and It works fine
But If use Max(doj()) instead of Today()
Sum({<year=,month=,quarter=,doj={'>=$(=YearStart(Max(doj()))<=$(=Max(doj()))'}>}sales)
It won't be ignore the selections
Note:Max(doj) and Today() both are giving same result(30May2016)
I wanted to understand why it is and
If I want ignore the selections, what should I do In the same way?
Any ideas?
May be this:
Sum({<year=, month=, quarter=, doj={'>=$(=YearStart(Max({<year=, month=, quarter=>} doj)))<=$(=Max({<year=, month=, quarter=>} doj)))'}>} sales)