Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Color My World

I have made this table to color the dots on the map I have created.



However, the colors that are shown on the maps are not the same ones that are specified in the hex codes:


Property TypeColor codeColor I am ExoectubgColor on Map
Commercial Morgtage00FF00GreenBlue



Please help me fix this problem.

Solution Sage
Solution Sage

Hi !

Please share the Data Model diagram, seem you are using another table which has fact information & that is mapped to status table.


In Power BI - Map chart, go to format, expand Data colors -> press (fx) and use format by [field vaue] to provide data fill colors.


Data ColorsData ColorsData Colors2Data Colors2



Here you go.  I don't see a problem with the data model, though...





Hi !

Thanks, the model diagram will help us understand how you are plotting the map chart.


You can create a measure lie below;


Property Color = SWITCH( TRUE(),
                MAX(Property Type[Property Type]) = "Leased", 1,
                MAX(Property Type[Property Type]) = "Owned", 2,
                MAX(Property Type[Property Type]) = "Commercial Mortgage", 3,
                MAX(Property Type[Property Type]) = "Auto", 4,


Now, in the Data Color option, choose format by Rules as shown below;




Hope this will work for you.




Super User IV
Super User IV

@redridgie , are you able to show dots for each Property Type.

If so either with the measure of column ((hex code need to with #)


Example measure you create one and use that in conditional formatting with the field value option. But that option will not be there with a legend


Brand Color = Switch( true(),
max('Item'[brand]) = "Brand 1" , "red",
max('Item'[brand]) = "Brand 2" , "blue",
max('Item'[brand]) = "Brand 3" , "green",
max('Item'[brand]) = "Brand 4" , "gray",
max('Item'[brand]) = "Brand 5" , "yellow",
max('Item'[brand]) = "Brand 6" , "orange",
max('Item'[brand]) = "Brand 7" , "brown",
max('Item'[brand]) = "Brand 8" , "Cyan",
max('Item'[brand]) = "Brand 9" , "Tan",
max('Item'[brand]) = "Brand 10" , "Violet",
max('Item'[brand]) = "Brand 11" , "Gold",

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors