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: 
Ceb
Contributor III
Contributor III

Cummulative SUM with 2 dimensions

Hi,

I have a table with Date, Group, Count, Cumulative Count(data below)

DateGroupCountCummulative Count
01/01/1980A05115
09/01/1984B01364
01/01/1988A7469
02/04/1988A02724
04/01/1988A1392
06/01/1988A22903
05/01/1989A12972
07/15/1993A13046
08/01/1993A03580
11/01/1993A05328
11/30/1993B11423
12/08/1993A13774
12/13/1993A03728
12/15/1993A12926
12/31/1993A23682
01/01/1994A03368
01/10/1994A15107
02/02/1994A05315
02/08/1994A12935
02/08/1994B11293
03/29/1994B01307
04/10/1994B11955

 

For cummulative count I have tried the below code but I am getting some weird values

=aggr(Rangesum( above(
count (
[ID])
,0,RowNo())),Group,Date)

Referred: https://community.qlik.com/t5/New-to-Qlik-Sense/Rangesum-cumulative-with-2-dimensions/td-p/1285355

Though if I try without the grouping(aggr function) I get the right values. 

 

 

Thanks,

Labels (3)
10 Replies
Ceb
Contributor III
Contributor III
Author

It worked

Thanks alot!!!