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
Emily_Kim
Frequent Visitor

Conditional Formatting in Matrix Visual with different conditions based on Row Headers

Hello Everyone,

I need a complex conditional formatting in my matrix visual. I hope you can help me, thank you.

 

ClassMax1-May1-Jun1-Jul1-Aug1-Sep
A201518221419
B252230282519
C303128192535

 

This is my matrix with Class and Max in Rows, Date in Column and number of participants in the Values.

Each class has a maximum capacity. If the number of participants in more than the Max for each Class, the font colour shd be in RED. How can I achieve this?

Thank you for your kind help.

 

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @Emily_Kim ,

 

You can achive your required output using the color measure like below and using in conjunction with conditional formatting of measures.  

DataNinja777_0-1715401135965.png

DataNinja777_1-1715401199958.png

I attach an example pbix file.  

View solution in original post

2 REPLIES 2
DataNinja777
Super User
Super User

Hi @Emily_Kim ,

 

You can achive your required output using the color measure like below and using in conjunction with conditional formatting of measures.  

DataNinja777_0-1715401135965.png

DataNinja777_1-1715401199958.png

I attach an example pbix file.  

Hi @DataNinja777 ,

It works, thank you very much. Really appreciate your kind help.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.