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: 
Anonymous
Not applicable

show Unknown if IsNull(@48) or @48=' '

I want to add an 'Unknown' selection to the field @48

I have the following script that is not working yet:

if(isnull(@48),'Type Unk',

if(@48 = ' ','Type Unk',@48)) as DebtorType,

is there something I can change here, or a different way to get the result I want?

3 Replies
MayilVahanan

HI

Try like this

If(Len(Trim(@48)) = 0 ,'Type Unk',@48) as DebtorType;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Try:

if(isnull([@48]),'Type Unk',

if([@48] = ' ','Type Unk',[@48])) as DebtorType,

Anonymous
Not applicable
Author

thanks for your help, managed to figure it out right after I posted!