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

Assigning Variable to Listbox!!

Hi

I just want to assign a variable to the list box which will trigger the event based on my selection in the list box.

Suppose I have a list box 'X' with different fields as "A","B","C" and want to create a chart which shows the %sales of A,B,C on selecting the respective field from the list box.

How can i assign the Sales% variable to my list box which will show graph as per my selection assuming my variable name is vsales.

Thanks

7 Replies
Clever_Anjos
Employee
Employee

Right-Click "New Sheet Object" / ListBox

At "field" choose "Expression" (is the last option)

Include your var name there

rustyfishbones
Master II
Master II

why can't you create a button to this?

add an action to the button set variable.

rustyfishbones
Master II
Master II

Is this the type of Functionality you are talking about

See Attached

Not applicable
Author

Hi Alan ,

Thanks for your reply but couln't  able to open the qvw file as i am working on personal edition.

I just want to show graph by using variable in list box with respect to my selection .

Thanks,

Vaneet 

Not applicable
Author

Vaneet1313

try this,

go to Document Property, Triggers tab, browse to the desired field and apply an action that change the value of the variable when making a selection in this field.

Not applicable
Author

Hi,

Go to settings->variable overview->create a variable->and add definition as =GetFieldSelections(FieldName)

Now you can get the selected value in the variable for particular field

Not applicable
Author

Thanks Claudio.