Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

How to Count Distinct When Two Conditions Are Met

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

How to Count Distinct When Two Conditions Are Met

Last Update:

May 10, 2022 3:21:58 PM

Updated By:

Jamie_Gregory

Created date:

Feb 12, 2019 11:19:54 AM

This can be accomplished with Set Analysis.

If there are three columns in the app named: A B and C and we want to count the distinct values of C when certain values exist for A and B, the syntax for this would be

count({<A={'ValueA'},B={'ValueB'}>}distinct C)

This will count the distinct values in Column named C when the field values for Column A and B equal ValueA and ValueB, respectively.

 

Environment:

Qlik Sense Business 
Qlik Sense Enterprise on Windows 
Qlik Cloud 
QlikView 

 

Related Content:

Set analysis and set expressions 

Labels (1)
Version history
Last update:
‎2022-05-10 03:21 PM
Updated by: