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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
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   

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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.