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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Matrix Color coding for rows

I am using a matrix to show 2 measures based on values.  The stakeholders want Growth to be green and Foundational to be blue. This is no conditional formatting in to allow this so is there a dax measure or something I can do as a work around.

RitaWK_0-1604605338482.png

 

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

The current version(2.86.902.0 64-bit (October 2020)) really can not set different types of data bars to different colors.

Try @Fowmy ‘s solution or try to find a custom viusal in appsource .

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@Anonymous 

 

I don't think it is possible but you can apply both Data Bar and Background C-Formatting. Under Background CF, apply the below measure to highlight in Green and Blue

 

CF = 
IF( SELECTEDVALUE(Sales[Category]) = "Accessories", "Light Green" , IF( SELECTEDVALUE(Sales[Category]) = "Bikes", "Light Blue"))

Fowmy_0-1604607185716.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

This is a table you used - this doesn't work for Matrix.

 

Anonymous
Not applicable

Hi @Anonymous - I havnt tried this but can you try something like this:

 

https://community.powerbi.com/t5/Desktop/Conditional-Format-for-metrics/td-p/1000572

 

Hope this give you some pointers

 

Cheers,

-Namish B

 

 

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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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