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
fa82
Regular Visitor

Matrix conditional formatting of row and row header

Hi Everyone, I'd appreciate your help on the following:

I have Year, Quarter, Attribute, and Value set up in a matrix like this:

fa82_0-1640260278536.png

 and a matrix similar to this: 

fa82_1-1640260459648.png

 

Is there a way to conditionally colour the row and row header? e.g. if attribute= A-19, color the value and row header blue.

 

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @fa82 

 

Currently it is not supported to apply conditional formatting to row/column headers in Matrix visuals. It only applies to Values fields. You can create a measure to decide colors, then use Format by Field value based on this measure. HTML Color Codes 

Color = IF(SELECTEDVALUE('Table'[Attribute])="A-19","#89CFF0")

21122701.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

amitchandak
Super User
Super User

@fa82 , I doubt you can do conditions formatting for matrix header column

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
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.