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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if condition with count.

Hi all I have this logic of a KPI I want to make a measure in Qlik sense. Can some please help.

COUNT( DISTINCT

CASE

WHEN

CUSTOM_CODE = 'quoted_ac'

AND

SUBTYPE_CODE = 'Submission'

THEN

JOB_JOBNUMBER END

)

I have tried to write the script like this but it didn't work and give me -

if

(CUSTOMTYPE_CODE='quoted_ac'

and  JOB_SUBTYPE_CODE = 'Submission',COUNT(distinct JOB_JOBNUMBER))

2 Replies
swuehl
MVP
MVP

Try

COUNT(distinct

if(CUSTOMTYPE_CODE='quoted_ac'

and  JOB_SUBTYPE_CODE = 'Submission',

JOB_JOBNUMBER))