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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
NG1407
New Contributor II

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
MasonMA
Valued Contributor II

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

Nabha-Ahmed
Contributor II

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

 

NG1407
New Contributor II

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

Praful_Potphode
Contributor

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

Helpful resources

Announcements
Top Solution Authors
Users online (8,586)