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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
gerrycastellino
Creator III
Creator III

distinct with set analysis question

Trying to add a simple set analysis to this distinct expression:

Count(   DISTINCT [account_uuid ])

would like it to count distinct only when sfdc_account_id  is NOT NULL.

I've tried changing this to;

Count(   DISTINCT {< sfdc_account_id > {''} >}   [account_uuid ])

something's missing, it won't take it:

G.

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Count(DISTINCT {<sfdc_account_id = {'*'}>} [account_uuid ])

View solution in original post

5 Replies
sunny_talwar

Try this:

Count(DISTINCT {<sfdc_account_id = {'*'}>} [account_uuid ])

sfatoux72
Partner - Specialist
Partner - Specialist

T‌ry this :

count({<sfdc_account_id={"*"}>} DISTINCT account_uuid)

sunny_talwar

Why the = sign Sébastien Fatoux‌? I have never seen this, so just curious

sfatoux72
Partner - Specialist
Partner - Specialist

‌it was an error that I corrected just after sending

But in your expression, you use simple quote. I thing it's better to use double quote to use search syntax.

sunny_talwar

But this is a single string, would it really matter?