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: 
Not applicable

Adress empty fields in set analysis

Hi all,

I have the attached table.

Now I have a text object with the next set analysis expression:

sum({<OPCODE_COUNT.OPCODE={'CANDIDATE'},OPCODE_COUNT.MA={''}>} SUBSCRIBER_COUNT)

I keep getting 0.

though the result should be 1 because I'm referring only to the last 3 rows in the table from a previous selection.

Any Idea how to address this empty fields?

1 Solution

Accepted Solutions
Not applicable
Author

Thanks, in the end I used the isnull() in the load script and gave it a value.

View solution in original post

2 Replies
ali_hijazi
Partner - Master II
Partner - Master II

these are null values not empty strings

you can the following to be able to refer to these null values

in your script add the following:

NULLASVALUE your_field;

SET NULLVALUE = 'OTHER';

...

YOUR LOAD SCRIPT GOES HERE

then you can refer to these in set analysis OPCODE_COUNT.MA={'OTHER'}

I can walk on water when it freezes
Not applicable
Author

Thanks, in the end I used the isnull() in the load script and gave it a value.