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: 
Odla88
Contributor
Contributor

How to lock the value of a variable

Hi all,

I need to save a data selection inside a variable, for example:

I have a field called Market and I select the value 'Italy', after I save this selection in a variabile by the formula '$(=concat(Market))' that will result 'Italy'.

But then I need the value of this variable to be "locked", so if then I select 'France' as Market, the variable value must remains 'Italy'.

Does anyone has an idea of how to lock it?

Thank you

Labels (2)
2 Replies
MarcoWedel

what are you trying to accomplish with this variable?

Odla88
Contributor
Contributor
Author

My target is to save somewhere multiple "cycles" of selections made by the user.

I mean that the user start to apply data selections,  and when it has finished, he click on a button to save this first cycle of selections applied, then start again with the second cycle of selections and so on. 

At the end I need to merge all these cycles of selections.

For example, in the first cycle the user selects 'Italy' as Market, then he saves this selection by a button inside a variable var1; then he clears the previous selection made and start with the second cycle, selecting 'France' as Market and again saves it in a second variable var2. at the end I'll merge these two variables to obtain something similar to the string 'Italy, France'