Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sonikajain
Partner - Contributor
Partner - Contributor

variables in qlikview

Hi all,

I needed to know at when all instances are the values of variables computed within an application.

When all will a variable  get refreshed.

Each time I open the app?

Each time I make a selection in the app?

Each time I access it using $(var)?

Please guide me on this.

Thanks

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

If you set a value to a variable this value doesn't change until something happens to change it:

if you LET X=1;

$(X) will always be 1 even if you close and reopen the document.

If you want to change value use button for example.

Obviously if you have LET X=Today(); the value of X will be different on different days and will be updated every time you open the documet;

hope it helps

pover
Luminary Alumni
Luminary Alumni

Good question if you are looking to optimize an application.

I'm not entirely sure how this works in the background, but at least the variables appear to change every time a selection is made and the variable is called upon in an active object.  Of course, variables can be nested and called upon by other variables.

At least, I hope it works like that.  Otherwise, using a lot of variables would be very inefficient and I have not seen that to be the case.

Tell me if you see differently.

Karl