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: 
Anonymous
Not applicable

Changing variables inside expressions on button click

Currently i have two charts. One for local curr and other for converted curr.

I want to make it into one by using variable in the expression. the variable has the text for currency conversion formula

*(CurrExchRate/Convert2CurrExchRate)

On button click if variable =1 then use variable value (*(CurrExchRate/Convert2CurrExchRate))else null.

How can I do it? Not much idea on buttons. Please help.

2 Replies
Not applicable
Author

Please see the attached QVW file.

I created a couple of buttons. One is available when vTEST variable = 1. The other one is available when vTEST variable <> 1.

On general tab, you can find "Enable condition" box. Input enable condition in this box.

Then set necessary actions on Action tab; in this case setting Variables.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attach file hope it helps you.

Regards,

Jagan.