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.
vik0810
Resolver V
6 years agoHI,
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.
Sweeney1987
3 years agoNew Member
Worked Beautifully! Thank You.