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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
dennisbraun
Frequent Visitor

Automatized color theme application for all values of a visual

Dear PowerBi Community,

I have created a color theme for a pie chart.

I can specify the colors for the first 8 values of the theme:

dennisbraun_0-1711460515253.png

These colors will as well be applied to the visual.
However beginning with the 9th value there is default colors again I need to set it up manually value by value.

dennisbraun_1-1711460824428.png

Do you have any idea how one could set up the color scheme automatized for all values?
As the values are changing constantly it would be huge manual work the update them to scheme color.
Best regards
Dennis

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @dennisbraun ,

 If you haven't already, create a custom JSON theme file that includes a broader array of color definitions. This way, you can ensure that there are enough colors specified in your theme to cover more than 8 values. You can then import this theme into your Power BI report. 

Create Custom Power BI Theme via JSON Files | by Courtney Williams | Medium

 

I have also found a helpful post, please refer to.

Solved: Pie chart color help - Microsoft Fabric Community

  • try to do a theme file and use Report themes in Power BI Desktop .and you can change the code

    in the json file. 

  • set multiple colors (color palette) to the visual by using a Custom theme in your Power BI File.

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

dennisbraun
Frequent Visitor

Hi @Anonymous thanks for your kind support!
I repeated the color codes in the JSON theme file code several times and it seems to work now!

dennisbraun_0-1711532277775.png

 


Thanks and best regards
Dennis

View solution in original post

2 REPLIES 2
dennisbraun
Frequent Visitor

Hi @Anonymous thanks for your kind support!
I repeated the color codes in the JSON theme file code several times and it seems to work now!

dennisbraun_0-1711532277775.png

 


Thanks and best regards
Dennis

Anonymous
Not applicable

Hi @dennisbraun ,

 If you haven't already, create a custom JSON theme file that includes a broader array of color definitions. This way, you can ensure that there are enough colors specified in your theme to cover more than 8 values. You can then import this theme into your Power BI report. 

Create Custom Power BI Theme via JSON Files | by Courtney Williams | Medium

 

I have also found a helpful post, please refer to.

Solved: Pie chart color help - Microsoft Fabric Community

  • try to do a theme file and use Report themes in Power BI Desktop .and you can change the code

    in the json file. 

  • set multiple colors (color palette) to the visual by using a Custom theme in your Power BI File.

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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