Forum Discussion
Save value from a table
maserr DAX measures are dynamic. We cannot store the value based on the previous selection.
If you select Value 3 = 'Z' below measure will return 'X'. But the moment you select another value or deselect the Value 3, result will change.
Val1 = SELECTEDVALUE(MyTable[Value1])
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
- maserr6 years agoHelper IV
I think I have not explained myself enough. I would want to achieve which is proposing the accepted solution from this post but with varchar.
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Measures-with-KPI/m-p/1078163#M15168
Thanks
- kentyler6 years agoSolution Sage
So, you wish to match a given value against a set of "target" values, but your problem is that the target values are strings instead of numbers... can you give us an example of the actual target values you want to use.
I think you will have to list all of your target strings. You probably not be able to use anything like, greater than or less than with strings. So your table of targets would be larger, but would work just by matching, using LOOKUPVALUE(), for example.