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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Grouping / Coloring Level 2 Row Headers of Matrix Table

Hi, I am trying to color the Row Headers of a Matrix table:

Danil_1-1713184807626.png

For the column Customer, I would like to give it a color, based on its grouping. Let's say we have customer ABC123, in the table its value under the Group column is 'Blue', for every item of this Customer.

Would it be possible to match the cell value to this Group. I would also like to sort by these groups, so it goes Sector > Group > Customer, alphabetically.

8 REPLIES 8
AnalyticPulse
Super User
Super User

yeah its possible. add calculated column in table to assign a values to your grouping. then go to conditional formating inn format pane in powerbi and chose the feilds option and then configure the colour conditions based on your choice. like, when feild value is = 1 then green otherwise blue etc. 

 

If this helped, Follow this blog for more insightful information about data analytics
https://analyticpulse.blogspot.com/

See my Pins :
https://pin.it/5aoqgZUft
https://in.pinterest.com/AnalyticPulse/

Anonymous
Not applicable

Do you have any screenshots of which function I should use in visualization? Currently, I only seem to have the option to edit the cell values...

Anonymous
Not applicable

Hi @Anonymous ,

I think you can use conditional formating in Matrix. Here is a simple example.

Firstly I create a new measure.

Measure =
IF ( SUM ( 'Table'[Sales] ) > 100, "Red", "Green" )

Then I go to the conditional formating and choose Background color.

vyilongmsft_0-1713236705566.png

Next we can choose the Measure we created.

vyilongmsft_1-1713236967321.png

Finally you will get what you want.

vyilongmsft_2-1713237091002.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

Anonymous
Not applicable

Hi, 

 

Thank you for your description and screenshots. Only this applies to the values, not to the secondary row headers, which is what I want:

Danil_0-1713777120415.png

Danil_0-1713777361500.png

At this point, I'm not sure this is at all possible in Power BI?

 

Anonymous
Not applicable

Hi @Anonymous ,

If you want to change the background color of the row headings and column headings, you can't currently do that in Power BI, you can only change the background color of the Value.

vyilongmsft_0-1713778530075.png

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

That's unfortunate, thank you for all your input!

Anonymous
Not applicable

Hi @Anonymous ,

I need to change what I said above, I have always understood that changing the background color of row and column headers is done dynamically, but if it is done statically I think it is possible.

You can change the background color in Column headers and Row headers in the matrix view.

vyilongmsft_0-1713835509119.png

vyilongmsft_1-1713835524462.png

vyilongmsft_2-1713835553264.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you for thinking along. However, this doesn't solve my issue, due to two reasons:

1. I do need it to be colored dynamically, as I want customers of group 'Green', 'Blue', etc. to show the corresponding color, and this varies per customer.

2. As I see it, this can only be done for the main row header. So I was able to change the color of the 'Sector' column (again, statically, so all the same), but not for the second level 'Customer' column, which is the one I need to change.

If someone knows a solution for this, I would love to hear it. Currently I feel like I will just have to wait for another Power BI update that allows for this...

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors