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: 
jblomqvist
Specialist
Specialist

RangeAvg expresison syntax question

Hi all,

I have the following expression:

RangeAvg(Above(Sum(LineSalesAmount),0,RowNo()))

This is used in the following table:

Capture.JPG

Can anyone please explain to me what the 0 does as the above expression?

The idea of this expression is to show the average of all the rows until the current row. But I do not understand what the zero does

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

The second parameter is an offset. 0 means include the current row (offset of 0). 1 would include everything in Above, except the current row.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

The second parameter is an offset. 0 means include the current row (offset of 0). 1 would include everything in Above, except the current row.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jblomqvist
Specialist
Specialist
Author

Hi Jonthan,

Thanks for your reply. I realised it's part of the Above function.

What does the RowNo() function do as part of that? Sorry the expression is not something I am familiar with so trying to understand