Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
syedzee
Contributor II
Contributor II

on List box selection set variable value

Hi

I want to set variable value on list box selection. In my listbox i have 2 values Monthly and Yearly.

I want to set my variable with list box selected values. I want to use variable value with barchart monthly and yearly data. I have tried Document properties with Trigger option

onAnySelect (option) to set fieldname with variable

and i have tried

onselect option

and variable oninput option

but no one is working for  me.

kindly guide how can i achieve this.

Thanks

2 Solutions

Accepted Solutions
Qlik1_User1
Specialist
Specialist

Try this..

Create a variable with

vVariable = GetFieldSelections(Field name)

View solution in original post

Qlik1_User1
Specialist
Specialist

Use =$(vDate) in Textbox ..you have used input box .

 

Its working for me.

 

Qlik.PNG

View solution in original post

6 Replies
Qlik1_User1
Specialist
Specialist

Try this..

Create a variable with

vVariable = GetFieldSelections(Field name)

syedzee
Contributor II
Contributor II
Author

Hi,

Please guide me where i have to create and mentioned scripts. kindly guide me step wise.

Thanks

 

Qlik1_User1
Specialist
Specialist

Step1: Create  a variable at front end.. IF you are using Qlikview go to setting-->variable overview-->create variable

If using QlikSense -->go to edit mode on sheet-->on left bottom-->variables-->create variable

Step2: Use that variable like $(vVaraible ) in bar chart

 

syedzee
Contributor II
Contributor II
Author

I have tried your solution but its not working for me.

I have created variable with

vDate=GetFieldSelections(Desc)

and used it for display value in text box on selection of list option but its only showing above string instead of values.

snapshot is attached for your review.

 

Qlik1_User1
Specialist
Specialist

Use =$(vDate) in Textbox ..you have used input box .

 

Its working for me.

 

Qlik.PNG

syedzee
Contributor II
Contributor II
Author

Thanks now its working i used text object.