Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ShellyG
Creator
Creator

Variable within a variable within script

Hi all, 

I have something like 50 different variables which I would like to have dynamic in my script:

=$(vMetricName)

=$(vMetricClass)

=$(vMetricSize)

So my question is is something like that even possible in Qlik Sense: 

=$(vMetric$(vVariations))

where vVariations can be Name, Class, Size and etc.? And if yes - how is the correct scripting? 

Thanks! 

2 Replies
chris_djih
Creator III
Creator III

You could try something like this: $(vMetric$(=vVariations)). But haven't tried it myself

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.
marcus_sommer

In general it's possible to nest variables. But it depends on where and how the variables are defined and where and how the variables are called and which content is included - to see if it's possible respectively how much efforts and complexity are needed. This means using variables extensively may not always make things easier else you may become the opposite effect.

- Marcus