Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Distint count

Hi All,

I have following requirement.

I have field name Customer. when I select three month Jan, Feb, Mar I want to list down the customers common in three months and count for the same.

i.e customer common in all selected three month

2 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Just create a listbox for customer which will show the common customers in white when you select the months.  To show a count add an expression to the listbox (v10 and later) with COUNT(DISTINCT CustomerID).  Bear in mind that Distinct Counts are pretty inefficient so if you have a very large dataset you may notice performance issues.

Hope this helps,

Jason

Not applicable
Author

Hi Jason,

I know that but this will give me count off all the customer..

I want count of only common..i.e suppose there is customer A which is present in all selected months.. so my count should be 1 i.e A