Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
udrk
Contributor
Contributor

Get user selection from 'Variable input' object to use in another expression.

Hi.

I use "Variable input" objects, where the user gets two choices (buttons): 'Yes' and 'No' and uses a variable: vShowName. Depending on the selection, different fields are displayed, the selection 'Yes' shows the field 'Name' and the selection 'No' shows the field 'Does not show'.
In another expression I want to check if the user pressed 'Yes' or 'No'?
I want the input like this:
if (vShowName = 'Yes', Field1, Field2).
Have tried GetFiledSelection etc but not found anything to work.

Help needed 🙂

 

Labels (2)
1 Reply
vinieme12
Champion III
Champion III

Add below as a Calculated Dimension in Chart, pass field names as string in single quotes

=$(=if ($(vShowName) = 'Yes', 'Field1', 'Field2'))

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.