Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
| 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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 7 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 19 | |
| 14 | |
| 11 | |
| 8 | |
| 7 |