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: 
microwin88x
Creator III
Creator III

Table Box: Catching Null Values

Hello!

I have a Table Box with many fields and one of those fields, STATUS, has different values like SELECTED, INSPECTED and there are also null values (showed as -). I'd like to change the null values in order to have something like 'TO BE SELECTED'. I believe I could do this by applying the following as a calculated dimension to STATUS: =IF(ISNULL(STATUS),'TO BE SELECTED',STATUS) but the thing is that I can't apply calculated dimensions to a Table Box...

How could I do this? What solution do you recommend me to use?

Thank you!!!

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

In the script:

LOAD

IF(Len(Trim(STATUS))=0,'TO BE SELECTED',STATUS) as STATUS,

*

FROM ......

NULL handling in QlikView

View solution in original post

3 Replies
Anonymous
Not applicable

In the script:

LOAD

IF(Len(Trim(STATUS))=0,'TO BE SELECTED',STATUS) as STATUS,

*

FROM ......

NULL handling in QlikView

MK_QSL
MVP
MVP

You can do the same using below

Script Side

Change your STATUS line as

IF(LEN(TRIM(Replace(STATUS,'-','')))=0,'TO BE SELECTED',STATUS) as STATUS

UI SIDE (in Listbox, Calculated Dimensions)

IF(LEN(TRIM(Replace(STATUS,'-','')))=0,'TO BE SELECTED',STATUS)

Hope this helps..

its_anandrjs
Champion III
Champion III

Load your table like

Load

IF(STATUS= '-', 'TO BE SELECTED',STATUS) AS NewStatus

From Location

Hope this helps