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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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.