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: 
jisephcirspy
Contributor III
Contributor III

How to express if cell is not empty?

So I want to get the cells, which are not empty. I tried

 

=if(isnull(col),col)

 

but this is the completely opposite of what I want

I want it like

=if(!isnull(col),col)
Labels (1)
5 Replies
Chanty4u
MVP
MVP

May be this?

If(Len(Trim(Col)) = 0, 1) AS EmptyCol

if(isnull(fieldName),fieldName)  as fieldName

 

or

 

if(fieldName=' ',fieldName)  as fieldName

 

or

 

if(len(fieldName)=0' ',fieldName)  as fieldName

vinni
Contributor
Contributor

Hi Jisephcirspy,

You can try below expression:

=If(ISNULL(Col),,Col)

 

jisephcirspy
Contributor III
Contributor III
Author

no, this doesn't solve the problem 😞

jisephcirspy
Contributor III
Contributor III
Author

it gives me an error...

Chanty4u
MVP
MVP

try this way

NULLASVALUE *; 

IF(IsNull(Col1), 'Not Available', ' ') as [Not Available];