Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation of comulative sum of unique ids

Hi,

Assume I have a table that looks like:

UserIDActivityTime
a110/02/2015
a210/02/2015
a310/03/2015
a110/03/2015
a510/04/2015
...

Which represents the timestamp when Users made some activity. Now Assume that I want to create a line chart that on X axis is ActivityTime and on Y Axis is the number of unique Users who made some activity the last 30 days on the date shown in X Axis.

One way I thought about was to use Expression like:

Rangesum(above((Aggr(count(distinct UserID),  [ActivityTime])),0, 30))


However this expressions is not exact. For example if user a1 made activities both of 2nd and 3rd, the above expression counts the user twice.


Any recommendation on how to create the proper expression is appreciated.


Thanks a lot,

Shahab

0 Replies