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

Problem with null values

Hi all,

i have some problem to craete null values replace with any text unknown' can you please suggest me

Labels (1)
1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Like this.

Regards

ASHFAQ

View solution in original post

10 Replies
tresB
Champion III
Champion III

Load

          If(IsNull(Field), 'Unknown', Field) as Field

jagan
Partner - Champion III
Partner - Champion III

Hi Sanjeev,

Check this

SET NULLDISPLAY=<sym>;


Ex:

SET NULLDISPLAY='Unknown';

Regards,

Jagan.

MK_QSL
MVP
MVP

use below in your script...

IF(IsNull(YourFieldName) or LEN(TRIM(Replace(YourFieldName,'-','')))=0, 'Unknown',YourFieldName) as YourFieldName

ashfaq_haseeb
Champion III
Champion III

Like this.

Regards

ASHFAQ

Not applicable
Author

thanks Ashfaq

ashfaq_haseeb
Champion III
Champion III

Welcome

MK_QSL
MVP
MVP

Sanjeev,

Happy to know that you got your answer...

Just for my curiosity, what was wrong with tresesco, Jagan or my answer?

Not applicable
Author

I understood he gave with example

MK_QSL
MVP
MVP