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
NG1407
Helper I
Helper I

Color Matrix row header with different colors

I have a matrix where there is Row header and when we expand row header we get subheader. I want to color only Row header that too different colors for each row value.

Also these color should be only for Row header cells and not all row values.

How can I do it.

Row HeaderSub headerValue
Orange  
Green  
Purple  
4 REPLIES 4
Praful_Potphode
Solution Sage
Solution Sage

As suggested by MASON,it is not possible to do conditional formatting for matrix visuals.if you want conditional formatting for now, then use table visual

Nabha-Ahmed
Memorable Member
Memorable Member

Hi @NG1407 

 

Create a calculated column in your dimension (replace Table and RowHeader with your names):


RowLabel_WithEmoji =
SWITCH(
TRUE(),
'Table'[RowHeader] = "Orange", "🟧 " & 'Table'[RowHeader],
'Table'[RowHeader] = "Green", "🟩 " & 'Table'[RowHeader],
'Table'[RowHeader] = "Purple", "🟪 " & 'Table'[RowHeader],
'Table'[RowHeader]
)

 

-Use RowLabel_WithEmoji as the matrix row field. This visually highlights only the row header cells.

 

Thanks

 

It doesn't work. it just add colorname or the color icon infront of row header instead of coloring the background.

MasonMA
Community Champion
Community Champion

If this is Row Header conditional formatting, consider voting it as an idea https://community.fabric.microsoft.com/t5/Fabric-Ideas/Conditional-Formatting-of-Row-Headers-in-Matr... 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.