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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

IF and IsNull function

I'm trying to add an IF-function in the script:

IF (IsNull () and IsNull (), "Yes", "No")

The script says that the formula is okay, but it doesn't show the desired result.

Who can help me to discover the error in my formula?

13 Replies
shashipraband
Contributor
Contributor

Hi Natascha,

It is working for me, I tried this using the inline table for the example you mentioned above.

I defined null as blank in below script.

Input:

Set nullinterpret='';

Load *, IF (IsNull (A) and IsNull (B), 'Yes', 'No') as NullValue;

Load * inline[

A,B

A Value,A Value

A Value,

,A Value

,

]


Output in front-end:

Capture.JPG

Note: Please check you may be assuming a blank value as null, but it may not be true always. It may be an empty string. So if it is a real null value(not an empty string) then if you click on it, it should not get selected and no changes should happen. And one more observation you can do is null values will not visible in list box. Just check.


Regards

Shashi

Anonymous
Not applicable
Author

Same result as by using the other formula, but thanks for your help.

sasiparupudi1
Master III
Master III

Please provide a sample app.

vishsaggi
Champion III
Champion III

Can you share exact expr you are trying to use in your app? With some sample data would help.