Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Counting the records over time

Hello all, i have a data where i have customer ID against dates. In same table i have "status" field where it tells customer is either active etc. Issue i am trying to solve is, how can i do a count on unique customers in a day and make a report where i see increment or decrease in number of customers seen over time? DISTINCT doesnt work due to "status" field since customer may be active on one day and seen deactive on another day

4 Replies
varshavig12
Specialist
Specialist

Can you post a sample data and the expected output.

varshavig12
Specialist
Specialist

Do you want the count of 'Active' customers on a particular date ?

count(Distinct{<Status={'Active'}>} Customer ID)

Not applicable
Author

Sample data

DATECUST_IDSTATUS
1/06/2016201CREATE
1/06/2016201ACTIVE
1/06/2016201SYNCED
1/06/2016203ACTIVE
1/06/2016204CREATE
1/06/2016206ACTIVE
1/06/2016210ACTIVE
1/06/2016227CREATE
2/06/2016201ACTIVE
2/06/2016210ACTIVE
2/06/2016204ACTIVE
2/06/2016230CREATE

as you can see there were 6 distinct users on 01st of June, and second of june there were 4, however on 2nd of June, there was one new user" 230" so i am hoping to get output like this

1st of June user count = 6

2nd of June , User count = 7 (6+1)

hope it makes sense? THanks in advance

sunny_talwar

Check Stefan's response here: Accumulated Distinct Count