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

How to count aggregation including previous years

My data is like this: 

IDYear
A2016
B2016
C2016
D2017
E2017
F2018
G2018
H2018
I2018
J2019

 

I am looking to get count like shown below: 

YearCount of ID as of Year
20163
20175
20189
201910

 

As of year 2016, the count should be 3. 2017 should include 2016 and 2017. 2018 should include 2016, 2017 and 2018 and so on and so forth. The final year should be a summation of all counts.

I also like the same if I chose to view Month or Quarter instead of Year as a dimension. Please help

Labels (1)
1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

it will work

RangeSum(Above(Count(Year), 0, RowNo()))

Channa

View solution in original post

3 Replies
Channa
Specialist III
Specialist III

it will work

RangeSum(Above(Count(Year), 0, RowNo()))

Channa
rvijayanth
Creator
Creator
Author

Thanks. How do we add set analysis to it, lets say I want to add {<Sex = {'Male'}>}. Where should I add?

rvijayanth
Creator
Creator
Author

It works now. Thanks for the reply.