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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.