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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
rfigueroa
Contributor III
Contributor III

Set Expression for Runnig Average by Quarter

I'm trying to calculate the Running Average by Quarter

  • For the first month of each quarter, the AVG will be the value of that month.
  • For the second month, the AVG of the 1st and 2nd.
  • For the third month, the AVG of the three months of that quarter.

Example: 

image.png

Already have columns A,B,C, need to calculate D

Thanks in advance

Robert

Labels (3)
1 Solution

Accepted Solutions
madimadi
Contributor II
Contributor II

Hey,

try rangeavg(above(Avg_Qtr))

hope it helps.

View solution in original post

2 Replies
madimadi
Contributor II
Contributor II

Hey,

try rangeavg(above(Avg_Qtr))

hope it helps.

miskinmaz
Creator III
Creator III

Try 

RangeAvg (Above(MyField,0,3))

 this will give you avg of three months

RangeAvg (Above(MyField,0,2))

this will give you abg of two months