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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Hierophant
Regular Visitor

Apply different background colors to different row subtotals in matrix visual

Hi to all. I am new here so any help would be highly appreciated.

 

I have a matrix in Power BI Desktop showing global car sales. It has 4 rows:

- Region (US, Europe, Asia, . etc),

- Car Manufacturer (e.g. Toyota, Ford, BMW, etc) ,

- Model (e.g Corolla, C-Max, etc) and

- Engine (cc)

 

It has 2 value columns:

- Items sold

- total Sales (USD)

 

My question is:

is it possible to set a different background color for each row subtotal, eg blue for each region, green for each car makers and yellow for each model? Or even set different font sizes?

 

A simplified, mock example is given below.

 

It appears that you can't set custom formatting  per row subtotal. Is this true?

 

Thank you very much in advance!

 

 

 

Matrix_colors.png

 

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Hierophant , The best you can have is color for values different for different for different levels.
Create a measure like the below, and use that in conditional formatting-> Field Value -> Values and Total and choose a measure. Do for all value fields


 

You can use column from you visual, use in order last level to top level

Color Based on total = Switch( TRUE(),
ISINSCOPE('Item'[Category]), BLANK(),
ISINSCOPE('Item'[Brand]), "Blue",
ISINSCOPE('Date'[Month Year]), "Green","Yellow")

amitchandak_0-1707411707474.png

 

 

amitchandak_1-1707411720571.png

 

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Hierophant , The best you can have is color for values different for different for different levels.
Create a measure like the below, and use that in conditional formatting-> Field Value -> Values and Total and choose a measure. Do for all value fields


 

You can use column from you visual, use in order last level to top level

Color Based on total = Switch( TRUE(),
ISINSCOPE('Item'[Category]), BLANK(),
ISINSCOPE('Item'[Brand]), "Blue",
ISINSCOPE('Date'[Month Year]), "Green","Yellow")

amitchandak_0-1707411707474.png

 

 

amitchandak_1-1707411720571.png

 

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

Many thanks!

Will try asap and let you know

 

Best

Hiero

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors