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: 
danialier
Creator III
Creator III

=count(DISTINCT(Id))


Hello,

I want to create a count formula that counts all IDs excpet the ones with " n/a ". So far I'm using

 

=count(DISTINCT(Id))

What else do I need to add so this fiormula is not counting the rows with " n/a " ?

Thanks,

dani

1 Solution

Accepted Solutions
Not applicable

Use set analysis to remove out the n/a

=count({<Id-={'n/a'}>}DISTINCT(Id))


hope that helps

Joe

View solution in original post

5 Replies
Not applicable

Use set analysis to remove out the n/a

=count({<Id-={'n/a'}>}DISTINCT(Id))


hope that helps

Joe

tobias_klett
Partner - Creator II
Partner - Creator II

Hello Dani,

do you have the 'n/a' in the Id field? Than it is:

=count({<Id=Id-{'n/a'}>} distinct Id)

Hope ths helps

Tobias

danialier
Creator III
Creator III
Author

excellent, thanks Joe

Not applicable

Hi Dani,

use below expression:

=Count({<Id={"*"}-{'n/a'}>}DISTINCT(Id))

Thanks

Sabal

Not applicable

No worries, it is probably a good idea to have a look at these links for a more in depth overview of set analysis

Set Analysis: syntaxes, examples

Romancing with Set Analysis

hope that helps

Joe