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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable with Set Statement

In the load script I define X as follows:

Set X = "$(Y) * 100";

Y is an input variable.

As Y changes X is not updating.
It remains 100 time the value of Y when the document was loaded.

How can I force $(X) to update whenever Y changes?



4 Replies
Not applicable
Author

Try Let, not Set.

What does your variable look like after it is loaded?

isaiah82
Creator III
Creator III

Try LET instead of SET. -Isaiah

Not applicable
Author

I've tried let. It does not seem to work at all.

( Results to null )

isaiah82
Creator III
Creator III

$(Y) is being evaluated and stored in the variable. Check the variable definition after your load finishes. You can just change the definition there (e.g. '=$(Y)*100' without the quotes) or build this out in your script using chr() functions. Let me know if that doesn't make any sense.