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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
sshiny
Helper II
Helper II

Matrix-Colour formatting

Is it possible to give different colours to "Total" and "Average"? I have given colours to the three months based on a measure-

Color =
var Month_Name = SELECTEDVALUE('Tag Usage Fact'[Month Name])
return
SWITCH(true(), Month_Name = "April", "Green",
Month_Name = "May", "Red",
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", "Purple").
Now, I need to give colours to "Total" and "Average"

sshiny_0-1659957099574.png

 

1 ACCEPTED SOLUTION
memepu
Resolver II
Resolver II

Hi @sshiny ,

I have created a simple sample, please refer to it to see if it helps you.

Matrix-Colour formatting.pbix

Create a measure.

Measure = IF(ISINSCOPE('Tag Usage Fact'[[Month Name]),'Tag Usage Fact'[Color],"Orange")

memepu_0-1660186013538.png

If I have misunderstood your meaning, pelase provide more details with your desired output and pbix file without privacy information.

 

Best regards.

View solution in original post

1 REPLY 1
memepu
Resolver II
Resolver II

Hi @sshiny ,

I have created a simple sample, please refer to it to see if it helps you.

Matrix-Colour formatting.pbix

Create a measure.

Measure = IF(ISINSCOPE('Tag Usage Fact'[[Month Name]),'Tag Usage Fact'[Color],"Orange")

memepu_0-1660186013538.png

If I have misunderstood your meaning, pelase provide more details with your desired output and pbix file without privacy information.

 

Best regards.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.