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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.