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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis

i need set analysis expression for counting null values and not null values.

Regards

Mahesh

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You cannot count nulls using a set expression. Use NullCount() instead. The Count() function already excludes nulls.

HTH

Jonathan

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

View solution in original post

9 Replies
Not applicable
Author

could you please give some more information

regards,

MT

Not applicable
Author

share your QVW I will show you

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You cannot count nulls using a set expression. Use NullCount() instead. The Count() function already excludes nulls.

HTH

Jonathan

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

hi

count(Distinct {<fieldname={' '}>}fieldname)

Not applicable
Author

count(Distinct {<fieldname={'0'}>}fieldname) may also work

er_mohit
Master II
Master II

try this

count({<fieldname={" "}>}value)

or try this

count({<fieldname-={" "}>}value)

Not applicable
Author

Not applicable
Author

i have the scenario like i want to count filed values  having null and fields having data in single set analysis expression not through if statement.

Regards

mahesh

Not applicable
Author

I think you should look at Jonathan Dienst's answer. He explained to you how it should work.

regards,

MT