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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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