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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
prakash11440278
Post Prodigy
Post Prodigy

Matrix Grid lines Custom Colors

Hi Power BI Experts,

 

I have a requirement to display hierarchy level grid line colors in matrix chart. If you see in below screen shot, i want to display mine total line values should be grey color, region total line values should be blue color & grand total line values gold color. Can you please help me, how can we acheive this requirement.

 

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@prakash11440278 unfortunately not possible as described earlier.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

8 REPLIES 8
parry2k
Super User
Super User

@prakash11440278 unfortunately not possible as described earlier.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@prakash11440278 I think he means total value not actually grid lines color. Can you confirm? if you are looking for different grid line colors, it is not possible as suggested by @amitchandak 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

amitchandak
Super User
Super User

@prakash11440278 , I doubt you can change grid line color

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

Hi @amitchandak ,

 

Yes you are true i want to change only grid line colors. As you see in my screen shot Mine Total Horizontal line should be grey color, Region Total Horizontal line should be blue color & Total Horizontal line color is gold.

If we change the horizontal grid line color it is applying for all horizontal lines, that i dont want. I want only specific horizontal line color changes.

Hi @amitchandak @parry2k ,

 

Is the requirement possible?

amitchandak
Super User
Super User

@prakash11440278 , one way is to choose style under the style.

or See if you can create one for your need using the theme

https://powerbi.tips/tools/report-theme-generator-v3/

 

Another option is conditional for that will only work for values and you have to do for all columns.

 

You can create a color measure and field value option

A color measure like

Switch(
not(isfiltered(Table[Region])) && not(isfiltered(Table[City])) , "Gold",
(isfiltered(Table[Region])) && not(isfiltered(Table[City])) , "grey",
"Blue"
)

 

Refer for steps

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

 

For isinscope, isfiltered

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

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

@prakash11440278 use ISINSCOPE function with conditional formatting for Total and that will do the job. for ISINCOPE look at this post.

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k ,

 

Thanks for the reply.

 

This is for custom grid line color change based on hierarchy levels not for text data. Kindly provide the steps how can we acheive the requirement. Thanks.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors