Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewwizard
Master II
Master II

How to show NULL values with IF function in script

Hi All,

How to show NULL values with IF function in script?

Thanks in advance.

11 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Use Len() & Trim() it covers both Null and Empty values.

LOAD

*,

If(Len(Trim(SAL)), 0, SAL) AS SAL

FROM DataSource;


Hope this helps you.


Regards,

jagan.

qlikviewwizard
Master II
Master II
Author

Thank you jagan