Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello Guys!
let me put some backgoud first , im putting a color rule on a bar chart base on the following condition
| C01_2M |
| C02_CLAMSHELL |
| C03_4M3 |
| C05_4M1 |
| C06_CELDA_6 |
| C07_CELDA_7 |
| C08_CELDA_8 |
| C09_CELDA_9 |
| C10_CELDA_10 |
| C12_FUJI |
| C13_CANNING_1 |
Solved! Go to Solution.
Hi @joseama1 ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Avg =
AVERAGEX(
'Table','Table'[Value])Color =
IF(
[Avg]>=[MTARGETOAE],"#0F0", "#F00")
2. Column – Color –fx
Format style – Field value
What field should we base this on – [Color]
3. Result:
If the above results do not meet your expectations, can you express the expected results in the form of a picture, we can help you better
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @joseama1 ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Avg =
AVERAGEX(
'Table','Table'[Value])Color =
IF(
[Avg]>=[MTARGETOAE],"#0F0", "#F00")
2. Column – Color –fx
Format style – Field value
What field should we base this on – [Color]
3. Result:
If the above results do not meet your expectations, can you express the expected results in the form of a picture, we can help you better
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |