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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
flowerfroggirl
New Member

Use a Column in Data Set to Assign Colors to Cities for Visualizations.

I've tried several different ways to achieve this and have been unsuccessful.  Is there a way to use a color column on my data set to assign HEX colors to cities?  Most of the conditional formatting videos and articles on the web I have found are just a small list of brands to use SWITCH to assign colors, but my list is too long for that measure method.  I'm not sure if I can so this with a custom theme using JSON.  I don't think it allows me to get that granular in the coloring.  Ultimately, I want all the cities to have the same colors in all my visualizations.  See the two columns in my data set with the cities and HEX colors.

flowerfroggirl_0-1701878962873.png

 

Thank you!

CC

1 REPLY 1
lbendlin
Super User
Super User

your hex colors need a hash symbol "#" in front of them.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors