Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mwallman
Creator III
Creator III

Why is Set variable dollar expansion not working?

Hi,

I have a script like this in my app:

NULLASVALUE Country, Product, CustomerName;

SET NullValue = 'Not Found';

LOAD

<Fields>,

Country,

If(Country=$(NullValue), Null(), Country) as CustomerCountry

Resident <Table>

My NullValue dollar expansion is not working.

Any idea what I am doing wrong please?

I cannot remove the field from NULLASVALUE because it is required.

1 Reply
YoussefBelloum
Champion
Champion

Hi,,

I think you should write it like this:

If(Country='$(NullValue)', Null(), Country) as CustomerCountry