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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
raz-datamind
Partner - Contributor
Partner - Contributor

using variables to change expressions

hi all,

a have a "Measure" field containing measure values: amount, quantity, etc'.

i want the user to choose the measure he want to see,

and have variables to hold the correct expressions.

so i made two variables with the expressions i need.

when i put $(vAmount) as the expression in my graph it works great.

but i want to have another variable to point to the correct variable, something like:

vMeasureString= 'v'&maxstring(Measure) so that vMeasureString point to vAmount or vQuantity and i'll get the respective expression in my graph.

I can i do this?

Thanks,

Raz

Labels (1)
1 Solution

Accepted Solutions
fosuzuki
Luminary
Luminary

Yes!

Check the attached sample qvw.

Hope this helps

Fernando

View solution in original post

2 Replies
fosuzuki
Luminary
Luminary

Yes!

Check the attached sample qvw.

Hope this helps

Fernando

raz-datamind
Partner - Contributor
Partner - Contributor
Author

thanks!