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

Can we use document variables inside the load script?

I am trying to create dynamic variables here.

Create a variable using Document Properties -> Variables -> Create variable X (=changing_value) that has a changing value.

I am trying to use this variable inside my load script and all it gets is the text that is in the variable (i.e. "=changingvalue) and not the actual value that is being stored in the X.

script: Load columnname where fieldname < $(X)

Can you help me understand why this happens?

1 Reply
Not applicable
Author

Your Load seems ok, but you need to set a default value (for example 10) in your variable by going into Variables window in Qlikkview and set a default value. After that you can add an input field object to allow the user to update the variable when needed.

I hope this is what you need ?

Rgds,