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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.