Skip to main content
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

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

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!!