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

Count group by

Hi,

I have a table with a lot of OrderData and I'm trying to find out how many customer who made one order, how many customers who made two orders and so on. I'm trying to group by / aggr on CustomerEmail but I don't get the result I'm looking for. Anyone that can point me in the right direction?  Thanks

OrderIDCustomerEmail
100mail1@mail.com
101mail2@mail.com
102mail3@mail.com
103mail1@mail.com
104mail1@mail.com
105mail2@mail.com
1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try as dimension =aggr(count(distinct OrderID),CustomerEmail) and as measure =count(distinct CustomerEmail)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try as dimension =aggr(count(distinct OrderID),CustomerEmail) and as measure =count(distinct CustomerEmail)


talk is cheap, supply exceeds demand
flygstolen_fred
Creator
Creator
Author

Thanks, worked like a charm!