Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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)
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];