Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

cumulative calulation for last year

Hi

Currently trying to do cumulative count of last years figures on a table similar to below

idclubmonth of join year count
1redjan20111
2redjan20111
3redjan20111
4redjan20111
5redfeb20111
6redmar20111
7redfeb20121
8redmar20121

to produce something akin to

clubmonthyear 2012cum 2012year 2011cum 2011
redjan0044
feb1115
mar1216

3 of the 4 columns i can do

so year 2012 is

=Count({$<year = {$(=only(year))}  >}ID)

and year 2011 is

=Count({$<year = {$(=only(year)-1)}  >}ID)

cum 2012 is

=rangesum(above(Total sum(newapps.count),0,RowNo(Total)))

I just cant get the last column cum 2011 working right, any ideas ?

many thansk

1 Solution

Accepted Solutions
Not applicable
Author

I found the easiet way to do this was not through set analysis and cumulation combined but to just specify the column I wanted to cumulate

=rangesum(Above(Column(2),0,RowNo()))

View solution in original post

1 Reply
Not applicable
Author

I found the easiet way to do this was not through set analysis and cumulation combined but to just specify the column I wanted to cumulate

=rangesum(Above(Column(2),0,RowNo()))