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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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