Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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...
  • vik0810's avatar
    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.