Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I Want to display a last 8 months data in the expression using SET analysis.
Write like
=Sum({$<MonthYear = {">$(=num(AddMonths(today(),-9))) <=$(=Num(addmonths(today(),-1)))"}>} YourSalesValue)
Write like
=Sum({$<MonthYear = {">$(=num(AddMonths(today(),-9))) <=$(=Num(addmonths(today(),-1)))"}>} YourSalesValue)
Can i used it for any Dimension like months and monthname.
Yes you can use it for any expression or dimension.
I want to use variable in place of the formula in expression.
Create two variables like
vStart =num(AddMonths(today(),-9))
vEnd =Num(addmonths(today(),-1))
And then use script like
=Sum({$<MonthYear = {">$(vStart) <=$(vEnd)"}>} Sales)