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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Line averages

I have a chart that has many lines with amount an amount field.

I need to average the last three lines on each line.

Example:

Line             Amount         Average

1                         100                 0

2                         200                 0

3                         300            200.00

4                           33            177.66

6                           49            127.33

7                           74              52.00   

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try

=rangeavg( above( sum(Amount), 0, 3))

as Average expression. Lines should be sorted ascending in your chart.

Hope this helps,

Stefan

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Try

=rangeavg( above( sum(Amount), 0, 3))

as Average expression. Lines should be sorted ascending in your chart.

Hope this helps,

Stefan

jagan
Partner - Champion III
Partner - Champion III

Hi,

Please check attached file for solution.

Hope it helps you.

Regards,

Jagan.