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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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
Partner - Champion III
Partner - Champion III

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