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: 
BearNBeer
Contributor II
Contributor II

Replace NULL value in condition

Hello,

I'm very new in Qliksense and I wrote a very simple condition that checks if a field is equal to 0 :

 

=if( field = 0, 'field = 0', 'field not = 0')

 


My result looks like that :

 1.PNG

 

As you can see I have 1226 NULL values represented by a '-' .

What I would like to know is how I could put these NULL values in the 'field not = 0' line ?

Thank you in advance.

 
 
 

 

 

2 Replies
Taoufiq_Zarra

Maye be :

=if( lent(trim(field))= 0 or field=0 , 'field = 0', 'field not = 0')
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Vegar
MVP
MVP

It could be that you dont have data assoiciated to any field. image.png

Consider the example above/attached. 

I have a transaction for ID 6, but no definition in the Fields dimension table. Notice that the NULL() value is defined as "Field not = 0".