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

Rolling N Month in Pivot Table

Hi All,

I have a pivot table with two Rows dimensions and Month-Year as column dimension.

I need the formula avg(score) in expression will display the result of rolling three month for each month.

Means for January 2018 it should show result for Nov 17, Dec 17 and Jan 18.

I red about rengesum and rangeaverage but it seems working in straight table but not pivot.

Any thoughts please?

1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

Did you try using before/after

https://community.qlik.com/docs/DOC-8205

Learning never stops.

View solution in original post

8 Replies
azrahim71
Contributor II
Contributor II

We have the same question.. We work with Rolling Months, Rolling Quarters, Rolling Years.

Would love to get some help on this type of question. this is

Another is about MASTER Calendar...

pradosh_thakur
Master II
Master II

can you sort the month in ascending order and use something similar to


rangeavg(above(total avg(score),0,3))

Learning never stops.
deniscamh
Creator
Creator
Author

Thanks For replay Pradosh

But what about two dimensions in Rows?

See my table screenshottrend report.PNG

pradosh_thakur
Master II
Master II

Is it working ? Not sure i follow what you want to say here.

Learning never stops.
deniscamh
Creator
Creator
Author

No it is not.

It does not give the correct result.

pradosh_thakur
Master II
Master II

Did you try using before/after

https://community.qlik.com/docs/DOC-8205

Learning never stops.
deniscamh
Creator
Creator
Author

No,

Let me take a look at this.

Thanks.

deniscamh
Creator
Creator
Author

That is very helpful.

It seems working.

I will confirm as soon as I check all calculation

Thanks