Forum Discussion
Anonymous
6 years agoNot applicable
Alternative of SELECTEDVALUE DAX function
Guys, We have a Employee Name Slicer in Power BI and were showing some counts based on slicer selection using SELECTEDVALUE function. We are migrating our entire steup to Prod environment on SSAS...
- 6 years ago
HI,
SELECTEDVALUE is internally translated into following
IF ( HASONEVALUE ( Table[column] ), VALUES ( Table[column] ) )
So just use the IF expansion. And it does work with string types also.
Mariusz
Community Champion
6 years agoHi Anonymous
Try MAX()
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.

Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.