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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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