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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
k_burata
Creator
Creator

Count for Null

Hi I have been trying to count rows which looks at when a column is not null but seem to be getting no where.

Here's my data:

Capture.PNG

So I'm trying to count rows which has no Payment Ticked of Amount. It works well when I count those that have value more than 0.

     "=Count({<[Payment Ticked of Amount] = {"*"}>} [Payment Ticked of Amount])" gives me 2


But "=Count({<[Payment Ticked of Amount] -= {"*"}>} [Payment Ticked of Amount])" gives me 0. Should be 3.


TIA.

    

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Count only counts non-null values. Therefore there is a NullCount() function:

=NullCount([Payment Ticked of Amount])

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

5 Replies
fabdulazeez
Partner - Creator III
Partner - Creator III

you are trying to count null values

Try

"=Count({<[Payment Ticked of Amount] -= {"*"}>} [Payment Series ID])"

tamilarasu
Champion
Champion

Hi Kim,

=Count({<[Payment Series ID] = {"=Len(Trim([Payment Ticket of Amount]))=0"}>} [Payment Series ID])

jonathandienst
Partner - Champion III
Partner - Champion III

Count only counts non-null values. Therefore there is a NullCount() function:

=NullCount([Payment Ticked of Amount])

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Digvijay_Singh

May be try this -

NullCount([Payment Ticked of Amount] )

k_burata
Creator
Creator
Author

This worked for me.

Cheers!