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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

KPI object: filter with field null

Hi guys,

i need to use a count (distinct *) in the KPI object when the field_date is null.


For example:


Count(distinct {$<[field_date]-={"NULL"}>} cliente)

Thanks,

4 Replies
sunny_talwar
MVP
MVP

When field_date is null? or is not null?

For null, may be this:

NullCount([field_date])

sunny_talwar
MVP
MVP

I guess I am not sure what you are trying to calculate here. What exactly are you trying to count? Would you be able to share a sample with expected output here?

Not applicable
Author

Example:

  

clientfield_data
131/05/2016
101/06/2016
2
231/05/2016
431/05/2016
501/06/2016
5

Query:

select count(distinct client)

from table

where data_field is not null

Result count: 4

Thanks!

sunny_talwar
MVP
MVP

May be like this:

=Count(DISTINCT {<client = {"=Len(Trim(Concat(DISTINCT field_data))) > 0"}>} client)