Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mary_789
Frequent Visitor

How to apply conditional formatting to matrix values & display all values

Hello,

 

I have a matrix that drills down to 4 hierarchies (Brand, Vehicle, Type, Part). This data is displayed in rows. In the columns, I am displaying test level and values display status(0,1,2,3,4) 

The issue I am having is that it only shows 'FIRST Status' in the values field and the conditional formatting will not work. 

For example, I assigned Red if value is 0, green if value is 1, Blue if value is 2.. But all the fields are green.

 

Can I get some help with this?

 

Thanks.

2 REPLIES 2
Mary_789
Frequent Visitor

Thank you! I was able to format by field value using this measure.

But now when I collapse the hierachies, I see data with the formatting not assigned and it is a mix of values. How is it determining what value to apply when collasped? 

 

Expanded:

Mary_789_1-1649443096916.png

One level collapsed:

Mary_789_2-1649443118041.png

2 level collapsed: 

Mary_789_3-1649443137421.png

 

 

amitchandak
Super User
Super User

@Mary_789 , You can create a color measure and use that in conditional formatting

example

 

Measure =
Switch(true(),
max(Table[Column]) = "R1" , "Red" ,
max(Table[Column]) = "R2" , "Green" ,
max(Table[Column]) = "R3" , "Pink "
)

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

Create Table, Matrix, Bar, Pie, Line, Conditional formatting- https://youtu.be/BIwX2I7gF5Q?t=214

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.