cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Avivek
Super User
Super User

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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.