Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi All,
So I have a requirement of conditional formatting of Row Headers in Matrix visual.
My matrix looks like below.
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.
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
Solved! Go to Solution.
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.
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.
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! 🙂
@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
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 !!!
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 😞
@simrantuli - I do not know of a way to do custom row header background colors yet.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
122 | |
101 | |
71 | |
61 |