Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
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))