Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
87 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |