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

Moving average for beginners

Hi everyone,

I just started with QlikSense and I would like to know how to express a moving average of data. I have found the formula rangeavg(above(sum(Output),0,3)), but it doesn´t work in my case. Here is a screenshot of my false solution.

Sample Data.JPG

 

This data should be right instead: 

Correct data.JPG

Does someone know the solution for this problem?

Kind regards,

Julia

 
 
 
1 Solution

Accepted Solutions
juliag
Contributor II
Contributor II
Author

Found the formula!

=aggr(rangeAvg(above(sum(Output),1,2)),ID,OutputDate)

View solution in original post

3 Replies
andoryuu
Creator III
Creator III

Try Sum(Aggr(RangeAvg(Above(sum(Output),0,3)),Gesmtwerte))
juliag
Contributor II
Contributor II
Author

Now the data from "Prognose 2019" jumped to 0.

juliag
Contributor II
Contributor II
Author

Found the formula!

=aggr(rangeAvg(above(sum(Output),1,2)),ID,OutputDate)