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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
I would like to have a matrix where all backgrounds of values are in different color based on row header (in my case - Region). I have tried to do it, however, not all backgrounds are changing. Please see below:
The formula:
And then rules:
Can sombedy help me and answer where is the mistake.
Thank you:)
Solved! Go to Solution.
@Erburi92 , Create a measure that returns the color of the hex code
Switch( Max(Table[Region Code]),
"Africa", "Green" ,
"America", "#FF00F0" ,
// Add other
)
Use this in conditional formatting using the field value option
But in matrix, it will only color values (Not row and column)
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...
@Erburi92 , Create a measure that returns the color of the hex code
Switch( Max(Table[Region Code]),
"Africa", "Green" ,
"America", "#FF00F0" ,
// Add other
)
Use this in conditional formatting using the field value option
But in matrix, it will only color values (Not row and column)
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 52 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 103 | |
| 40 | |
| 33 | |
| 25 |