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: 
ivandrago
Creator II
Creator II

How to count nulls

Hi,

I've attached the following Document, I want to count the number nulls in a field and not sure how to do this?

Thanks

Labels (1)
1 Solution

Accepted Solutions
pover
Partner - Master
Partner - Master

Or better, using Tim Benoit's blog for inspiration:

=count({$<OrderNo={"=isnull(PT)"}>} OrderNo)

Regards.

View solution in original post

5 Replies
pover
Partner - Master
Partner - Master

Would this work for you?

=count(OrderNo) - count({$<PT={"*"}>} OrderNo)

Regards.

pover
Partner - Master
Partner - Master

Or better, using Tim Benoit's blog for inspiration:

=count({$<OrderNo={"=isnull(PT)"}>} OrderNo)

Regards.

Not applicable

I tried this on your example and it seemed to work:

=count(if(isnull(PT),1))

Not applicable

nullcount(PT) worked like a charm.

ivandrago
Creator II
Creator II
Author

Thanks Guy with all your answers!