Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I created the measure to comapre two columns. But the measure is always giving the output 1 only. kindly help me on this issue.
Thanks & regards
poornalingam a
Solved! Go to Solution.
Try SUM instead of SELECTEDVALUE as SELECTEDVALUE only works when you have a single value. This depends on your data model and the other fields you have in the table but give SUM a try and let us know if it works.
Hi @Anonymous
SELECTEDVALUE :When there is only one value in the specified column, the value is returned, otherwise, the candidate result is returned, and the null value is returned when the candidate result is omitted.
For example :
If you are sure that your data is single, you can use SELECTEDVALUE . Or you can add a single value to the table, and then make a judgment based on this column .
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try SUM instead of SELECTEDVALUE as SELECTEDVALUE only works when you have a single value. This depends on your data model and the other fields you have in the table but give SUM a try and let us know if it works.
You likely have multiple values in each column in the visual context and both of your SELECTEDVALUE()s are returning BLANK(). Are you confident there are only single values in the visual for each evaluation? You could try using MIN() instead of SELECTEDVALUE() but will want to make sure there are single values.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |