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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Beowulf005
New Member

Visual Data Color value from Table

Trying to figure out a method of defining the color scheme of visual based on a table.

Use case. Working on ticket metrics for support groups and we want to define the color of each support group, so it remains the same across all reports and visuals. Not sure if this would be a JSON color scheme or a linked table.

So, example would be

 

Beowulf005_0-1625185249476.pngBeowulf005_1-1625185258906.png

 

Beowulf005_2-1625185276831.png

 

What I get

Beowulf005_3-1625185294842.png

 

What I am looking for

Beowulf005_4-1625185378145.png

* Did the colors manually for the screenshot

 

 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @Beowulf005 ,

 

Sorry,as of now,pie chart doesnt support color formatting.

I have a workaround for you:

First create a column as below:

 

Color = LOOKUPVALUE('Table (2)'[Color],'Table (2)'[Group],'Table'[Group],Blank())

 

And a measure :

 

color picker = SWITCH(SELECTEDVALUE('Table'[Color]),"Blue","#15B3E5","Green","#2BE515","Red","#E51525")

 

Then create a "clustered column chart",choosing color formatting as below:

vkellymsft_0-1626340110251.png

And you will see:

vkellymsft_1-1626340123327.png

 

Then change the visual to pie chart,you will see the color setting is saved:

vkellymsft_2-1626340157468.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi  @Beowulf005 ,

 

Sorry,as of now,pie chart doesnt support color formatting.

I have a workaround for you:

First create a column as below:

 

Color = LOOKUPVALUE('Table (2)'[Color],'Table (2)'[Group],'Table'[Group],Blank())

 

And a measure :

 

color picker = SWITCH(SELECTEDVALUE('Table'[Color]),"Blue","#15B3E5","Green","#2BE515","Red","#E51525")

 

Then create a "clustered column chart",choosing color formatting as below:

vkellymsft_0-1626340110251.png

And you will see:

vkellymsft_1-1626340123327.png

 

Then change the visual to pie chart,you will see the color setting is saved:

vkellymsft_2-1626340157468.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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