March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 2016 where SELECTEDVALUE is not compatible.
Also we tried with HASONEVALUE(), but I guess this can be used with only numeric or date type values. As discussed above we are having string type values as Employee Names.
Please suggest us an alternative that can be used in this place with String type values.
Solved! Go to Solution.
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.
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.
Worked Beautifully! Thank You.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |