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.
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
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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
33 | |
18 | |
18 |