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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
joeybird
Creator III
Creator III

double null flag

Hiya

I wish to produce a null flag in the data load

this works for 1 column on a record

If(len("Depot"),0, 1) AS NullFlag,

how do I produce a flag for each record if 2 columns in a row are null?

e.g Depot is null and Factory is null

Please help

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

if(len(trim(Depot))=0 and len(trim(Factory))=0, 1,0) as DoubleNullFlag


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

if(len(trim(Depot))=0 and len(trim(Factory))=0, 1,0) as DoubleNullFlag


talk is cheap, supply exceeds demand
joeybird
Creator III
Creator III
Author

Hiya

fab, all works thanks Gysbert!!