Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Toya2323
Contributor
Contributor

Count of Customers per cashier a month

I've been stuck on this for a while.  I need to display it in table

 

How many cashiers saw one customer per month?  Answer: June - 4, July - 2

How many cashiers saw more than one customer per month? Answer June - 2, July - 3

 

Toya2323_0-1658490624907.png

 

Labels (4)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

How many cashiers saw one customer per month?  Answer: June - 4, July - 2

How many cashiers saw more than one customer per month? Answer June - 2, July - 3

 

I tried with

SUM(Aggr(IF(count(distinct Customers)=1,1,0), Cashier, Date))

SUM(Aggr(IF(count(distinct Customers)>1,1,0), Cashier, Date))

my answer: June - 4, July - 2

my answer June - 2, July - 2 (your answer is 3)

maxgro_0-1658492461847.png

 

View solution in original post

2 Replies
maxgro
MVP
MVP

How many cashiers saw one customer per month?  Answer: June - 4, July - 2

How many cashiers saw more than one customer per month? Answer June - 2, July - 3

 

I tried with

SUM(Aggr(IF(count(distinct Customers)=1,1,0), Cashier, Date))

SUM(Aggr(IF(count(distinct Customers)>1,1,0), Cashier, Date))

my answer: June - 4, July - 2

my answer June - 2, July - 2 (your answer is 3)

maxgro_0-1658492461847.png

 

Toya2323
Contributor
Contributor
Author

Thank you