Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
suzel404
Creator
Creator

How can I calculate the MM4 ?

Hi all,

How can I calculate the Moving Average of type 4 dynamically:

MM4 = 1/4[(1/2 Q1-2011) + Q2-2011 + Q3-2011 + Q4-2011 + 1/2(Q1-2012)]

Thanks for your help.

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III



Above(TOTAL Sum(SALESINCOME),2)/2+RangeSum(Above(TOTAL Sum(SALESINCOME),0,2))+Below(TOTAL Sum(SALESINCOME))+Below(TOTAL Sum(SALESINCOME),2)/2

2015-12-12 #1.PNG

View solution in original post

3 Replies
maxgro
MVP
MVP

maybe

0.25*

rangesum(

     0.5*Above(total Sum(SALESINCOME), 2),

     Above(total Sum(SALESINCOME), 1),

     Sum(SALESINCOME),

     Below(total Sum(SALESINCOME), 1),

     0.5*Below(total Sum(SALESINCOME), 2)

)

1.png

petter
Partner - Champion III
Partner - Champion III



Above(TOTAL Sum(SALESINCOME),2)/2+RangeSum(Above(TOTAL Sum(SALESINCOME),0,2))+Below(TOTAL Sum(SALESINCOME))+Below(TOTAL Sum(SALESINCOME),2)/2

2015-12-12 #1.PNG

suzel404
Creator
Creator
Author

Many thanks for your help guys!!