Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

12 months rolling for multiple selection of months on one single report

I need to have one single report that can display current month value and relevant 12 months rolling value. What I would like to achieve should look like:

FinMonthYearMeasureMeasure 12M Rolling
JUL-117272
AUG-1166138
SEP-1165203
OCT-1191294
NOV-11109403
DEC-11129532
JAN-11109641
FEB-11136777
MAR-1189866
APR-1189955
MAY-11651020
JUN-11641084

So I can have the visibility of trend for 12 months rolling.

However, I can only manage to have current month value and 12 months rolling value displayed for one specific year-month such as:

FinMonthYearMeasureMeasure 12M Rolling
JUN-11641084

If I select one MonthYear period, the rolling value is calculated correctly.

But if I select multiple periods, it can only give me the rolling value for the latest month such as:

FinMonthYearMeasureMeasure 12M Rolling
JUL-11721084
AUG-11661084
SEP-11651084
OCT-11911084
NOV-111091084
DEC-111291084
JAN-111091084
FEB-111361084
MAR-11891084
APR-11891084
MAY-11651084
JUN-11641084

I have tried a lot of changes in my set analysis script but no luck. Does anyone konw how to get this work without createing a different calendar table? Many thanks in advance.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Set analysis can't help you here. The set is calculated once for the entire chart, not per row. The set is calculated first and then the dimensions and expressions are applied to the set. What you could use instead is what some of us call an AsOf table. See here for an example.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
er_mohit
Master II
Master II

Try this

sum({<FinMonthYear={">$(=Date(Addmonths(Max(FinMonthYear),-12),'MMM-YYYY'))<=$(=DAte(Addmonth(Max(FinMonthYear),0),'MMM-YYYY'))"}>}Measure)

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Have a look at the attached example.

Regards,

Kaushik Solanki    

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Gysbert_Wassenaar

Set analysis can't help you here. The set is calculated once for the entire chart, not per row. The set is calculated first and then the dimensions and expressions are applied to the set. What you could use instead is what some of us call an AsOf table. See here for an example.


talk is cheap, supply exceeds demand
sushil353
Master II
Master II

hi,

please find attached,...

hope that will help you..

HTH

sushil

Not applicable
Author

In case anyone interested, here is the solution using island table. Very easy to implement but according to other people in community, it may have performance issue when the data volumes is big. In that case, AsOf table should be the alternative (basically is a pre-calculation in load script process).