Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
| Planned | Actual |
| 100% | 100% |
| 50% | 50% |
| 60% | 80% |
| 40% | 20% |
| blank | blank |
Hi, how to apply background colour based on conditions above.
1. Both Planned and Actual equal to 100% - format the cell to BLUE
2. Both Planned and Actual are equal to each other but less than 100% - format the cell to GREEN
3. Actual greater than Planned - format the cell to GREEN
4. Actual less than Planned - format the cell to RED
5. Both Planned and Actual blank - format the cell to GRAY
Solved! Go to Solution.
Hi,
You can create a measure like this :
@QAA91 , You can create a measure like
Assuming they are % column
color
Switch( True() ,
[Planned] =1 && [Actual] =1, "Blue" ,
([Planned] =[Actutal] && [Actual] <> 1) || [Planned] < [Actutal] , "Green" ,
[Planned] > [Actutal] , "Red",
"Grey"
)
Use this in conditional formating using the field value option.
A blank value will not take any color
PowerBI Abstract Thesis: How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4
Hi, Sorry one mistake in my formula, you should do the test for blank at first otherwise when both are blanks you'll get green because both have same value ;-=
So the formula should be :
Still on my journey in Power BI but check out my answer below:
Hi, Sorry one mistake in my formula, you should do the test for blank at first otherwise when both are blanks you'll get green because both have same value ;-=
So the formula should be :
@QAA91 , You can create a measure like
Assuming they are % column
color
Switch( True() ,
[Planned] =1 && [Actual] =1, "Blue" ,
([Planned] =[Actutal] && [Actual] <> 1) || [Planned] < [Actutal] , "Green" ,
[Planned] > [Actutal] , "Red",
"Grey"
)
Use this in conditional formating using the field value option.
A blank value will not take any color
PowerBI Abstract Thesis: How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4
Thank you very much
Hi,
You can create a measure like this :
Thank you very much
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 10 | |
| 9 |