Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis question (include null except certain values)

What would be the correct set analysis format to select all values in a dimension including the null value except for one specific value?

I am trying count({<Reason={"*"}-{'Other'}>} but this is not selecting the rows where the Reason is null (blank).

Please help.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Have a look at

Excluding values in Set Analysis

So it could look like

=count({<OtherField = e({<Reason={'Other'}>} ) >} OtherField)

View solution in original post

6 Replies
Anonymous
Not applicable
Author

How about checking isnull() and update it to 0 if you need only count?? like If(Field=Null(),0,Field) as Field1

Not applicable
Author

I can't update the field to zero as count is only one of the expression. The dimension is displayed as it's values in other tables.

el_aprendiz111
Specialist
Specialist

Hi,

Dimension

count({<Reason-={'Null'}>}

script

if(len(Trim(Reason)=0,0,Reason) AS Reason_2

Anonymous
Not applicable
Author

count({<Reason-={'Other'}>YourField)

swuehl
MVP
MVP

Have a look at

Excluding values in Set Analysis

So it could look like

=count({<OtherField = e({<Reason={'Other'}>} ) >} OtherField)

Not applicable
Author

This works like a charm!... thanks!!!