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

expression including selected values

i have a scenario where i want to do an expression based on a selected value. the user will select  zar or gbp in a list box. based on the selection the expression must sum (gbp value) when the user select gbp and sum(zar) when the user select zar. can someone please help me with an expression?

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: sum([$(=only(FieldnameOfYourListboxHere))])


talk is cheap, supply exceeds demand
jpapador
Partner - Specialist
Partner - Specialist

Make a list box with two values zar and gbp.  Then create the two expressions, using conditional statements make a statement that uses the Sum(zar) when the value of the listbox = zar and Sum(gbp) when the value of the list box = gbp.

You could make a field with an inline table with the values zar and gbp and then put that field in a list box.

GetFieldSelections(NameOFField) = 'zar' as the conditional (as an example)