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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
aveeeeeee7en
Specialist III
Specialist III

Null Issue

Hi Community

I want to replace Null values by a word 'VACANT'

I have use isnull() but anyhow it is not working.

Regards

Aviral

1 Solution

Accepted Solutions
maxgro
MVP
MVP

replace

=if(isnull(reviewer),'VACANT',reviewer)

with

=if(len(trim(reviewer))=0,'VACANT',reviewer)

and other similar dimensions in the same way

View solution in original post

7 Replies
maxgro
MVP
MVP

replace

=if(isnull(reviewer),'VACANT',reviewer)

with

=if(len(trim(reviewer))=0,'VACANT',reviewer)

and other similar dimensions in the same way

Not applicable

I don't see any nulls in the data on your dashboard, they appear to be showing as blank strings which is not the same thing as a NULL.  I feel like QV is not recognizing these as nulls and that's why your expressions are not working.

MK_QSL
MVP
MVP

=IF(Len(Trim(reviewer))=0,'VACANT',reviewer)

Joseph_Musekura
Support
Support

Before using IsNull in “ if” statement, you should well test
the field reviewer and see if the value is NULL or not (see attached).

Thus I agreed with Christian you need to use another
expression and replace either NULL /MISSING value by VACANT

dseelam
Creator II
Creator II

Hello Nag,

Try use this

if([field] < 0,Date([field]*-1),

     if(isnull([field]),'VACANT', Date([field]))) AS [field],

aveeeeeee7en
Specialist III
Specialist III
Author

Thank You Massimo

Missed this thing.

aveeeeeee7en
Specialist III
Specialist III
Author

Thank You all.

I appreciate all of yours Efforts.

Thanks Again.