Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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
MVP
MVP

Re: distinct count that keeps all selections besides the WHERE condition

Maybe just a DISTINCT qualifier?

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

1 Reply
MVP
MVP

Re: distinct count that keeps all selections besides the WHERE condition

Maybe just a DISTINCT qualifier?

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

Community Browser