Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Hum1
Contributor II
Contributor II

Rolling 3 Month Avg

Is there a way someone can explain to be why my rolling 3 months Avg (3 MMM) is displaying large numbers.

 

Expression for Rolling 3 Month (3 MMM) :

if(Month='Apr', sum(aggr(rangesum((sum((BookAmt/Act + OL)))),Month)),
if(Month='May' ,sum( aggr( rangesum( above( sum((BookAmt/Act + OL)/2)),0,1 ),Month)) ,
sum( aggr( rangesum( above( sum(((BookAmt/Act + OL)/3)),0,3) ),Month)))) Rolling 3 Month.PNG

 

Labels (1)
2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try:

if(Month='Apr', sum(aggr(rangesum((sum({<Month={'Apr'}>}(BookAmt/Act + OL)))),Month)),
if(Month='May' ,sum( aggr( rangesum( above( sum({<Month={'May'}>}(BookAmt/Act + OL)/2)),0,1 ),Month)) ,
sum( aggr( rangesum( above( sum(((BookAmt/Act + OL)/3)),0,3) ),Month))))

Brett_Bleess
Former Employee
Former Employee

Did Arthur's suggestions work?  If so, do not forget to return to your post and use the Accept as Solution button on his post to give him credit for the assistance and to let other Members know that worked.  If you are still working upon things, please leave an update.

A useful area for how-to type solutions is here, there are over 700 posts in this area from our internal experts, so worth bookmarking for future reference:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.