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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

formule rangesum with before


I have build a formula with the following expression :

rangesum(sum(Amount*-1),before(Sum(Amount*-1),1,ColumnNo()))

The dimension of my pivot table is period.

The sort of period is desc. so  the newest period is my first column. I have included an example. I have no problem with sort asc.

So

1 Reply
tresesco
MVP
MVP

Use After() with a trick for Desc sort like the following:

=RangeSum(Sum(Amount*-1), After(Sum(Amount*-1),1, NoOfColumns() - ColumnNo()))