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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Which RangeSum() method is better

These two formulas give the same result:

=RangeSum(Above(Sum(Sales),0,RowNo()))

=RangeSum(Above(TotalSales),Sum(Sales))

* TotalSales is a label of expression within this formula

So the question is which method is better and why?

1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi,

Check explanation below

  1. =RangeSum(Above(Sum(Sales),0,RowNo()))  - If you are accumulating from top row to current row this method is used
  2. =RangeSum(Above(TotalSales),Sum(Sales)) - If you are summing up above row and current row sales

Regards,

Jagan.