Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
dharis
Contributor III
Contributor III

Calculating running average of previous 3 months

I am working in a QlikSense Dashboard where business has requested us for running average of previous three months for the metric calculation “Factory DEFOA DPPM”. When we are using RangeAvg function, the total column is showing as 0. Currently I have used the below expression to calculate the running average. Please let me know if we can get value in the total column in the metric table.

Num((sum(CaseID)/Num(RangeAvg(before(Sum({1<[Event Location] =,[Commodity Group]=,MonthName=,FiscalWeekStart=>}Volume), 1, 3)),'#,##0'))*1000000,'#,##0')

Have attached Metric view for reference. 

 

Labels (1)
2 Replies
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Try this

Num((sum(CaseID)/Num(RangeAvg(Above(Sum({1<[Event Location] =,[Commodity Group]=,MonthName=,FiscalWeekStart=>}Volume), 1, 3)),'#,##0'))*1000000,'#,##0')

Hope this helps

Thanks

Thanks and Regards
Kashyap.R
dharis
Contributor III
Contributor III
Author

Thanks Kashyap, sorry this did solve my issue. I need column wise . Let me know if you can provide an alternate. Thanks again