Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

create listbox with variable in expression

I would like to create a list box using a variable in the expression.  The variable contains the names I want displayed for selection in the list box.

Is this possible?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

You can try using the variable as filter, use something like this as <expression>  list box field (replace FieldToFilter with the field name):

=If(Match(FieldToFilter, $(vUSNFDMParts) ), FieldToFilter)

Just like a calculated dimension.

View solution in original post

5 Replies
swuehl
Champion III
Champion III

How does the variable look like?

Anonymous
Not applicable
Author

vUSNFDMParts='01012-US-G', '01012-US-S'

The items within the ' ' are names within a field.

Not applicable
Author

Hi,

    I think it's not possible

swuehl
Champion III
Champion III

You can try using the variable as filter, use something like this as <expression>  list box field (replace FieldToFilter with the field name):

=If(Match(FieldToFilter, $(vUSNFDMParts) ), FieldToFilter)

Just like a calculated dimension.

Anonymous
Not applicable
Author

That works.  Thanks