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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.