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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.