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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
cottrera
Post Prodigy
Post Prodigy

Conditional format Matrix Column

Hi 

 

I have a Matrix visual that I would like to only conditional format the background colour for the % column with the header 'Yes' as highlighted below. Can you please tell me is this is possible wit DAX

 

0%-98% = Red

98%-99% Orange

99%-100% = Green

 

cottrera_0-1632307027479.png

 

cottrera_1-1632307095002.png

 

thank you

 

Richard

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cottrera , Create a color measure and use that in conditional formatting using filed value option 

 

Color  =  if(Max(Table[Job completed with]) = "Yes", Switch(True() ,

[%] <= 98% ,"Red",

[%] <= 99% ,"Orange",

[%] <= 100% , "Green"), "white" )

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
cottrera
Post Prodigy
Post Prodigy

Thank you amitchandak for your quick response this measure worked fine. I just needed to change the % to numbers. For example 1 instead of 100%

amitchandak
Super User
Super User

@cottrera , Create a color measure and use that in conditional formatting using filed value option 

 

Color  =  if(Max(Table[Job completed with]) = "Yes", Switch(True() ,

[%] <= 98% ,"Red",

[%] <= 99% ,"Orange",

[%] <= 100% , "Green"), "white" )

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.