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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MCacc
Helper IV
Helper IV

Custom color of the legend values

Hello, 

 

I have a question about the visual scatter plot.

 

I have been asked to set the colors for each value of the legend.

 

The colors are provided to me in table which has two columns: 

 

VALUE                COLOR

ITALY                  #c791c7

GERMANY         #ecf3fd

POLAND            #05390a

 

I checked all the features of the scatter plot but I haven't seen the option to custom the color of the values. I know there is an option with the visual matrix but I'm not sure about other types of visual.

 

Do you have any idea? Is it possible?

Thank you

2 REPLIES 2
amitchandak
Super User
Super User

@MCacc , if country is legend, then you have manually color using color option in Marker

 

If there are only values, and no legend, You can create a color measure and use that in the conditional formatting of the marker using the field value option

 

Switch(Max(Table[Country]) ,

"ITALY", " #c791c7",

"GERMANY","#ecf3fd",

"POLAND","#05390a") 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you for confirming! 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.