Forum Discussion
keyway
6 years agoFrequent Visitor
Multi selection in a SWITCH(TRUE()
Hi I have the followed measure Selected Item = VAR Selection = SELECTEDVALUE(Cost_Item,[Attribute],"All" RETURN SWITCH( TRUE(), Selection = "Salary", [Salary], Selection = "Taxes",...
amitchandak
Super User
6 years agoTry like
Selection IN {"Salary","Taxes"}, [Taxes]+[Salary]
keyway
6 years agoFrequent Visitor
Hi
Yes, in fact that is the syntax i have on the code, i just missplaced the brakets on the message.
It shows a blank result
Thank you
- SH-42 years agoFrequent Visitor
Was this ever actually resolved? I've tried Selection IN {a, b, c} = a + b + c and it does not work.
I can only get my switch statement to work with single selection, but I need to be able to factor in for multiple selections and can't seem to find a solution if this is possible.