Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
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.
@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"))________________________
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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
This is a table you used - this doesn't work for Matrix.
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 46 | |
| 42 | |
| 34 | |
| 31 | |
| 21 |
| User | Count |
|---|---|
| 133 | |
| 126 | |
| 94 | |
| 79 | |
| 65 |