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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Return count where field is blank

I need to do a unique count of UserNames where the Firm field is blank

I tried this, but it didn't work

=COUNT(DISTINCT {$<Firm-={'*'}>}UserName)

any ideas?

12 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think this will handle both blanks and nulls:

COUNT(DISTINCT {$<UserName={"=len(trim(Firm))=0"}>}UserName)



-Rob

http://masterssummit.com

http://robwunderlich.com

Not applicable
Author

Thanks Jacob. Would I have to adapt my expression? Or would the null values be counted automatically?

Not applicable
Author

I think you could use NullCount(distinct UserName), but you could also try Rob's solutions. They might be simpler.