Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

36 months rolling avg-Urgent Requirement

Hi,

Can any one please help me How to calculate the 36 months Rolling Average.

what is Rolling average?Please explain.

I have used this Expression for calculating the 3years Fixed average.

=Count({<STATUSDATE_Year= {">$(=max(STATUSDATE_Year)-3)<=$(=max(STATUSDATE_Year))"},CASESTATUS={'CL''}>}MAINID)/3

based on these expression fields please help me to calculate the 36 months rolling avg.

Thanks,

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi


if your field "STATUSDATE_Year"  represents  a  year



try this in the expression in a pivot table:


if(rowno()<3,'',(Rangeavg(above(count({1} MAINID),0,3))

or

sum( aggr( rangeavg( above( count(MAINID),0,3) ),(STATUSDATE_Year))

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Anonymous
Not applicable

Hi


if your field "STATUSDATE_Year"  represents  a  year



try this in the expression in a pivot table:


if(rowno()<3,'',(Rangeavg(above(count({1} MAINID),0,3))

or

sum( aggr( rangeavg( above( count(MAINID),0,3) ),(STATUSDATE_Year))