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

Limit ListBox Options depending on Variable

Hi,

Im currently using a variable to limit the values in a pivot table using this expression if(dashboard=vIndicator, sum(value)) .

The only drawback with this is all the availble options are shown in my filter.  Is it possible to limit the values shown in my 'Question' filter depending on what variable is held in vIndicator?


For example my data set has a number of questions split to 2 Dashboard Values. At the moment all the questions are shown in the filter regardless of what variable has been selected by the user.

Many thanks for your help!!

Fiorano



1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached file. If you input a product name in the input box you'll notice that the selection of the Product listbox changes, as does the chart. On the Triggers tab of the Document properties you can see that the variable value has an action assigned to it. If you click on the button Edit Action(s) under OnInput you can inspect the action and its arguments.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use a OnInput Variable Event Trigger to make a selection in a field with a Select in Field action. It sounds like you want to select in field dashboard and set the search string to =vIndicator


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

Many thanks for your reply. Can you elaborate a little please - Im very new to Qlikview...

Many thanks!!

Fiorano.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached file. If you input a product name in the input box you'll notice that the selection of the Product listbox changes, as does the chart. On the Triggers tab of the Document properties you can see that the variable value has an action assigned to it. If you click on the button Edit Action(s) under OnInput you can inspect the action and its arguments.


talk is cheap, supply exceeds demand
Not applicable
Author

That is very helpful!

thanks!