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
simrantuli
Continued Contributor
Continued Contributor

Conditional Formatting of Matrix

Hi All,

 

So I have a requirement of conditional formatting of Row Headers in Matrix visual.

My matrix looks like below.

simrantuli_0-1596998536141.png

 

I have done conditional formating on Background color of Values i.e. 'Total Seated Headcount' and 'Total Desk Count' have colored backgrounds.

My client wants to see the same background colors for 'Total Seated Headcount' and 'Total Desk Count' row headers too. I tried everything and it didn't seem possible. So, I came up with a workaround and made the background of row headers 'Transparent' and put colored buttons behind 'Total Seated Headcount' and 'Total Desk Count' row headers and now my matrix looks something like below.

 
 

Capture.PNG

But the problem is, that the buttons look perfectly aligned on my screen but when the user opens the report on his laptop, the buttons that I have put behind 'Total Seated Headcount' and 'Total Desk Count' show unaligned and look very weird.

 

Is there any way to do conditional formatting of Matrix's row headers? Or any way to make 'Total Seated Headcount' and 'Total Desk Count' to stand out from the other row headers?

 

Your help would be greatly appreciated.

 

Thanks & Regards

Simran Tuli

 

1 ACCEPTED SOLUTION
simrantuli
Continued Contributor
Continued Contributor

Hi All,

Submitted an idea for this functionality to be added.

 

https://ideas.powerbi.com/ideas/idea/?ideaid=df51f072-bcda-ea11-bf22-501ac524580f

Please vote for it.

View solution in original post

7 REPLIES 7
v-alq-msft
Community Support
Community Support

Hi, @simrantuli 

 

It is unsupported to conditional Formatting row headers in matrix visual in Power BI currently. I'd like to suggest you vote for the idea and add your comments there to improve Power BI for making this feature coming sooner.

 

Best Regards

Allan

 

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

simrantuli
Continued Contributor
Continued Contributor

Hi All,

Submitted an idea for this functionality to be added.

 

https://ideas.powerbi.com/ideas/idea/?ideaid=df51f072-bcda-ea11-bf22-501ac524580f

Please vote for it.

@simrantuli  - Your idea now has 2 votes! 🙂



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@simrantuli , Have tried create a a measure and use that for all columns.

 

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

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
Anand24
Super User
Super User

Hi @simrantuli ,

 

Currently there is no way to conditionally format row headers in Matrix visualization.

You can submit this as an idea here.

 

Here are couple of things you can try:

1. Convert to Table viz if possible since you will be able to conditionally format values(row headers in matrix) in table viz

2. In the same work-around you have already used, can you group buttons and matrix viz. In this way, the buttons and matrix will always be in sync and shouldn't create an issue when opened from end user's laptop.

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!! 

 

simrantuli
Continued Contributor
Continued Contributor

Hi @Anand24,

The funny thing is that I have already grouped the Matrix and the buttons together, yet it shows unaligned on the user's screen 😞

 

Greg_Deckler
Community Champion
Community Champion

@simrantuli - I do not know of a way to do custom row header background colors yet.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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