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.
Hello,
I have this table:
And i would like it to be like that :
if 'Yes' is inferior or equal to 3% then it's green if it's superior to 3% then it's red
No conditionnal formating for the "No"
my measure used here is :
Solved! Go to Solution.
Hi @Anonymous ,
Try the formula like below:
Number of hilt = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Tilt]))
%TG =
var sum_ = CALCULATE(SUM('Table'[Value]),ALL('Table'))
return [Number of hilt]/sum_
M =
IF (
MAX ( 'Table'[Tilt] ) = "No",
"black",
IF ( MAX ( 'Table'[Tilt] ) = "Yes" && [%TG] <= 0.03, "green", "red" )
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try the formula like below:
Number of hilt = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Tilt]))
%TG =
var sum_ = CALCULATE(SUM('Table'[Value]),ALL('Table'))
return [Number of hilt]/sum_
M =
IF (
MAX ( 'Table'[Tilt] ) = "No",
"black",
IF ( MAX ( 'Table'[Tilt] ) = "Yes" && [%TG] <= 0.03, "green", "red" )
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thanks for the answer and sorry for my very late reply.
I couldn't check before today because i was busy. (2 weeks university / 2 weeks in company)
Your suggestion worked, i used "Count" instead of sum since i'm counting the number of yes and no.
Sorry again!
And thanks!
Have a nice day.
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 |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
87 | |
71 | |
63 | |
60 |