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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
datagrrl
Creator III
Creator III

Help with Accumulation of New Distinct Daily Values

datagrrl_0-1600364662418.png

 

In this example User 4 should count on Day 1, User 1 on day 2, User 2 and 5 on day 3 and user 3 on day 4. 

I would prefer this to accumulate for each month. At the end of the month the total should be the total # of distinct NEW users (Not the total of distinct daily users, that would be too high)

DateNewUsersCummNewUsers
1/1/202011
1/2/202012
1/3/202024
1/4/202015
1/5/202005

 

I am attaching my dummy data and my example. Any help is appreciated. I am hitting a wall on this one.

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this

RangeSum(Above(Sum(Aggr(If(UserID <> Above(TOTAL UserID), 1, 0), UserID, (Date, (NUMERIC)))), 0, RowNo()))

View solution in original post

2 Replies
sunny_talwar

Try this

RangeSum(Above(Sum(Aggr(If(UserID <> Above(TOTAL UserID), 1, 0), UserID, (Date, (NUMERIC)))), 0, RowNo()))
datagrrl
Creator III
Creator III
Author

Thanks so much. I thought Rangesum might get me there, but I wasn't setting it up correctly.