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.
cabc_xlorla
Advocate IV
5 years agoYour formula:
IF ( HASONEVALUE ( Table[column] ), VALUES ( Table[column] ) )
is a personal-game-changer for me. Thanks!
Please feel free to connect with me.