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

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

Reply
Avivek
Post Partisan
Post Partisan

Format color on columns and grand total in matrix

I have the below given matrix

Avivek_0-1660121684808.png

The requirement is that April, May and June all should be in different colours and then Proc total should be one colour and the Avg Total should be one colour.

I could give different colours to Proc Total and Avg but I could not apply it to labels and headers of Average as we can see in the above image. If I do so then it applies to the subtotal columns also. However we still cannot change the color of the labels for total avg.

Second is that for April, May and June, each one I need a different colour. To do so I created a dax and used it in conditional formating in rules.

Color =

var Month_Name = SELECTEDVALUE('Tag Usage Fact'[Month Name])

return

SWITCH(true(),  Month_Name = "April", "#B3B3B3",

Month_Name = "May", "#F5C4AF",

Month_Name = "January", "Red",

Month_Name = "February", "Red",

Month_Name = "March", "Red",

Month_Name = "April", "Red",

Month_Name = "May", "Red",

Month_Name = "July", "Red",

Month_Name = "August", "Red",

Month_Name = "September", "Red",

Month_Name = "October", "Red",

Month_Name = "November", "Red",

Month_Name = "December", "Red",

Month_Name = "June", "#C46887")

 

But if there is no value in a cell the colour does not apply onto that cell.

 

Can someone please help with this situation please.

 

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Avivek 

It is recommend that you create a separate date dimension table. You need to recreate matrix based on the date dimensions in calendar table and the fields in the fact table.

 

Best Regards,
Community Support Team _ Eason


 

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Avivek 

It is recommend that you create a separate date dimension table. You need to recreate matrix based on the date dimensions in calendar table and the fields in the fact table.

 

Best Regards,
Community Support Team _ Eason


 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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