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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
johnyip
Solution Sage
Solution Sage

Different format setting for different row / column subtotals

I want to construct a matrix like the following in PowerBI.

 

johnyip_0-1673921601725.png

 

It requires different backgrond colors for different row subtotals for clarity. However, in the PowerBI GUI, this option is greyed out.

 

johnyip_1-1673921778135.png

 

Are there any alternative ways like DAX and conditional formatting to achieve this? Thanks a lot.

 

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
3 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@johnyip , You can use a color measure. Make sure you use it for value and subtotal/total using field value option in conditional formatting

 

amitchandak_0-1673923156148.png

 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

johnyip
Solution Sage
Solution Sage

@amitchandak Can this be applied to the label also? For example, from your answer, I want the words "Brand 1", "Brand 10", "Brand 11", etc to be formatted with background color also.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

View solution in original post

I don't think this can be achieved under the current version of PowerBI, after many times of my trials and no response after this long time. In case I am wrong, please correct me, and I am going to close this post by accpeting solutions.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

View solution in original post

3 REPLIES 3
johnyip
Solution Sage
Solution Sage

@amitchandak Can this be applied to the label also? For example, from your answer, I want the words "Brand 1", "Brand 10", "Brand 11", etc to be formatted with background color also.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

I don't think this can be achieved under the current version of PowerBI, after many times of my trials and no response after this long time. In case I am wrong, please correct me, and I am going to close this post by accpeting solutions.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
amitchandak
Super User
Super User

@johnyip , You can use a color measure. Make sure you use it for value and subtotal/total using field value option in conditional formatting

 

amitchandak_0-1673923156148.png

 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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