Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

Rolling of last 3 months

I am trying to take average of last months based on ration ie.

If jan month then amount of jan months as it is come because there is no past years.. if feb then this should be jan and feb 

i tried this 

 

sum( aggr( rangesum( above( sum(((BookAmount/Rev)/3)),0,3) ),Month))

 

2 Replies
Gysbert_Wassenaar

Try:

 

avg( aggr( rangeavg( above( sum(BookAmount/Rev),0,3) ),Month))

 


talk is cheap, supply exceeds demand
Brett_Bleess
Former Employee
Former Employee

Did Gysbert's expression work for you?  If so, do not forget to return to your thread and use the Accept as Solution button on his post to give him credit for the help and let other Members know this worked.  If you are still working upon things, please leave an update, it is appreciated to not leave threads unsolved if possible, so if Gysbert's suggestion did work, please mark it, or let us know it worked, and I can mark it for you.

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.