Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe just a DISTINCT qualifier?

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

View solution in original post

1 Reply
swuehl
MVP
MVP

Maybe just a DISTINCT qualifier?

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