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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IsNull ?

IsNull([Start_Date])=0 means..

Labels (1)
1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

In this line means in [Start_Date] field if value is there means IsNull returns 0 and if value is not there(IsNull) then it returns -1

IsNull([Start_Date])=0

Try to plot a text box and write below code and you check this

=if(IsNull([Start_Date]) = 0, 'Date is there','Date is not there')

Thanks & Regards

View solution in original post

7 Replies
MK_QSL
MVP
MVP

It will check if Start_Date is Null...

its_anandrjs
Champion III
Champion III

Hi,

Isnull returns

Returns -1 (true) if expr returns NULL, otherwise 0 (false).

Thanks & Regards

veidlburkhard
Creator III
Creator III

Hi Helen,

the QV help file sais: IsNull() Returns -1 (true) if expr returns NULL, otherwise 0 (false)

Hope this helps.

Burkhard

senpradip007
Specialist III
Specialist III

IsNull(<YourField>) = 0 means when <YourField> contains not null value the function returns 0 and -1 when it cpontains null.

Not applicable
Author

can you explain with an example...

Thanks

Helen

CELAMBARASAN
Partner - Champion
Partner - Champion

To add with it

It can be used simply

If(Not IsNull([Start_Date]), expr, expr)

Which is easily understandable, instead of writing those equal conditions its likely to compare.

its_anandrjs
Champion III
Champion III

Hi,

In this line means in [Start_Date] field if value is there means IsNull returns 0 and if value is not there(IsNull) then it returns -1

IsNull([Start_Date])=0

Try to plot a text box and write below code and you check this

=if(IsNull([Start_Date]) = 0, 'Date is there','Date is not there')

Thanks & Regards