Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
harleen_singh
Creator III
Creator III

Null value check doesn't work

Hello,

        

I am using following statement in backend to check and fill null values with 1 but it is not working

if(IsNull([Unit of Measure Code]),1,0) as ABC,

What may be the problem??

thanks
Lavi

3 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Try this code

if(IsNull([Unit of Measure Code])=-1 ,1,0) as ABC,

or

If(len(trim(([Unit of Measure Code])) =0,1,0) as ABC

Deepak

harleen_singh
Creator III
Creator III
Author

@deepak,

          both statements not working

thanks

Lavi

deepakk
Partner - Specialist III
Partner - Specialist III

HI Lavi,

Can you attach any sample data. I can check at my end. Either of the above code should work or there might not be any null or blank data .

Deepak