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.
I want to create an IF statement that says if the value is greater than 90, then excellent, if it's 80-90, then good...etc. But keep getting error can't compare numbers and text. How can I do this?
Solved! Go to Solution.
hi @Anonymous - Follow the below steps to compare a %age value and assign a corresponding value
1. You would need to create a calculated column as below:
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
Proud to be a Super User!
@Anonymous
Proud to be a Super User!
I have a calcuated field with a percentage, and I need to say if it is above this percentage, then assign them a status. I don't see how I can convert say a percentage of 88.5% into a string and say if it is greater than 88.5 then.....Less than and greater than won't work with a string will it?
Compliance Status = IF(CONVERT([Overall Compliance], string)>"80" , "Excellent", "BOOOOOOOO")
hi @Anonymous - Follow the below steps to compare a %age value and assign a corresponding value
1. You would need to create a calculated column as below:
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
Proud to be a Super User!
Thank you, worked!!
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 |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |