Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
divya_anand
Creator III
Creator III

Sum of rolling 12 months based on selection

Hi,

I have attached a sample QVW with simple Year_Month & Sales data. I'm trying to display sum of rolling 12 months values based on current selection. In the attached QVW, when I choose 2018-Oct, It displays the right value but only for 2018-Oct, how do I display last 12 months to the month of selection as shown in the below screenshot?

Thank you. 

RollingSnap.PNG

Labels (2)
5 Replies
divya_anand
Creator III
Creator III
Author

Hi Shubham,

It ain't working, looks like I have to use As-of calendar.
Shubham_Deshmukh
Specialist
Specialist

What error u r getting?
divya_anand
Creator III
Creator III
Author

Conceptually, I think As-of is what i need to use and I have implemented as described here. 

The calculation is correct, however, I am unable to restrict the table to display only the rows marked in the below screenshot when Year=2018 & Month=Oct is selected (i.e., rolling 12 months).

I have attached the QVW for reference.

Thank you.

As-of.PNG 

Madhab77
Contributor III
Contributor III

Hi Divya,

Hope you are doing good!

Did you get the correct solution for this? My requirement is exactly same to this. Could you please share the solution for this? (But in Qlik Sense, not in Qlikview).

Thanks,

Madhab