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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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


@ 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!:
Mastering Power BI 2nd Edition

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

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

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


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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