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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic Variable in expression.

HI everyone,

I have three buttons 'Avg' , 'Min' and 'Max' which when pressed assigns variable 'vSet' as 'Avg','Min'&'Max' respectively

I have line chart which in the expression it says 'avg({<Dept={Clerk}>}salary)'

I want the expression to change to min,max and avg when the button is pressed,

i tried '=vSet({<Dept={Clerk}>}salary) but it didnt worked.

Any help will b appreciated.

4 Replies
Anonymous
Not applicable
Author

Hi,


Try like this

'$(vSet)'({<Dept={Clerk}>}salary)


Thanks,

Vignesh

Not applicable
Author

i tried $(#vSet)({<Dept={Clerk}>}salary) and it worked.

Thnx for the suggestion.

PrashantSangle

Hi,

You can try alternate solution

Try like

create 3 expression and show them conditionally.

Or

Create 3 chart and hide/show them conditionally.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Hi,

You Can create 3 expressions and enable them based on Condition.

PFA, Hope it helps you.

Thanks,

Vamsi