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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
patrou38
Creator
Creator

value selected list box

hello,

I would like to select a value in list box based on the result o fa variable.
It doesn't work , nothing are selected

if ($(vNameChart)='Test Configuration', Lib_Testeur='titi',Lib_Testeur='toto')

thank you again for your help.

Patrick

8 Replies
sunny_talwar

Are you using select in field trigger here? Assuming the field name is Lib_Testeur where you are making selection, try this

FieldName

Lib_Testeur


Search String

If($(vNameChart)='Test Configuration', 'titi', 'toto')

patrou38
Creator
Creator
Author

no Is not in the select in filed but in the dimension..

I tried this: =if ($(vNameChart)='MMS Reference Test Configuration',Lib_Site='Spore')

but I get an error : "Garbage after expression: 'MMS...'

sunny_talwar

May be try this

=If($(vNameChart)='MMS Reference Test Configuration',

If(Lib_Site='Spore', Lib_Site))

patrou38
Creator
Creator
Author

I don't want to put or have a condition on Lib_Site list box, but I would like to Select field in this one 😉

sunny_talwar

I am not sure I understand you sir.... May be if you can share a sample where you are seeing an issue and point it out to us....

patrou38
Creator
Creator
Author

in the picture below You can see a list box "Lib_Site.

if my Variable equal ok I would like to select automatically "Spore" in the list box otherwise no choice .

is it more clear ?

list box issu.JPG

sunny_talwar

You want to select in a list box or do you want to have it as a calculated dimension? These are two different things... List box selection can be done using select in field action... where as calculated dimension uses if conditions.... but I am not clear as to how a calculated dimension needs to select in a list box? They are two different objects

patrou38
Creator
Creator
Author

ok . I will do my select thru the select in field function -)

thank you for all

Patrick