Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Heena
Contributor III
Contributor III

Running total irrespective of sorting

Hi,

have a data as below, i need a running total based on the rank of count(ID). the running total should not change irrespective of the sorting on TYPE.

TYPECount(ID)
C176
D494
L107
M205
P54
S276
SI635
UI233
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Like this may be?

Aggr(RangeSum(Above(Sum([Count(ID)]),0,RowNo(TOTAL))), (TYPE,(=Sum([Count(ID)]), Asc)))

Capture.JPG

View solution in original post

4 Replies
Marcos_Ferreira_dos_Santos

Hi Heena,
Do you know how to use Alternate State ? It seems to me that this functionality can help you to build what you need.
Best regards,
Marcos
tresesco
MVP
MVP

Like this may be?

Aggr(RangeSum(Above(Sum([Count(ID)]),0,RowNo(TOTAL))), (TYPE,(=Sum([Count(ID)]), Asc)))

Capture.JPG

Heena
Contributor III
Contributor III
Author

Thanks!!
Heena
Contributor III
Contributor III
Author

Thanks!