Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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()))