Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
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

1 Solution

Accepted Solutions
fosuzuki
Partner - Specialist III
Partner - Specialist III

Yes!

Check the attached sample qvw.

Hope this helps

Fernando

View solution in original post

2 Replies
fosuzuki
Partner - Specialist III
Partner - Specialist III

Yes!

Check the attached sample qvw.

Hope this helps

Fernando

raz-datamind
Partner - Contributor
Partner - Contributor
Author

thanks!