Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

distinct count that keeps all selections besides the WHERE condition

Hi Experts,

I'm new to Qlik but familiar with SQL so please forgive any incorrect terms.

I'm trying to write an expression return the distinct count of the values in [Visit.Event.ID] where the field [Department] = ''Repair' and every other user selection applies also.  (i.e. Dealership, Grade, etc)

This seems to be close, but not quite. 

Count({$<Department={'Repair'}>}Visit.Event.ID)

Can anyone tell me what I'm missing?

Thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe just a DISTINCT qualifier?

Count({$<Department={'Repair'}>} DISTINCT [Visit.Event.ID] )

View solution in original post

1 Reply
swuehl
Champion III
Champion III

Maybe just a DISTINCT qualifier?

Count({$<Department={'Repair'}>} DISTINCT [Visit.Event.ID] )