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",...
MFelix
6 years agoSuper User
Hi keyway ,
Looking at your expression I'm assuming that you have an attribute column with (Salary, Taxes and Comission) and some measures with Salary, Taxes and Comission correct?
If you just make the Salary + Taxes + Comissions using a slicer should give expected result since the calculation of each measure will only be made if you select the value.
If this is not expected result can you share a sample of you data and expected value please.
keyway
6 years agoFrequent Visitor
Hi Miguel
Your assumptions are correct:
If i select more than one item using a slicer the result is always a blank value, if i select one single item from the slicer i get the correct value.