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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Colors in visuals change after publishing to web service (any json gurus?)

Hello Community  -  I have experienced this issue many times and finally think I stumbled upon the answer.    I am indeed using a custom them from Power Bi tips and tricks.    Using their tool, I generated a custom them according to our company branding.  

 

It appears based on another thread here in the forums that this could be the cause of my issue....which is that my visuals sometimes change colors when they get published.   It's very annoying.  

 

In the thread, the answer talks about not using "triple wildcards".    I have no idea about json.    But here is the code.    If anyone out there knows how this code could possibly be improved to avoid the "triple wildcard" issue....please help!   

 

{
  "name": "MyTheme",
  "dataColors": [
    "#364652",
    "#ff6600",
    "#85b5ba",
    "#f4faff"
  ],
  "visualStyles": {
    "*": {
      "*": {
        "*": [
          {
            "color": {
              "solid": {}
            }
          }
        ]
      }
    }
  }
}

2 ACCEPTED SOLUTIONS
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous,

 

try this.

 

{
  "name": "MyTheme",
  "dataColors": [
    "#364652",
    "#ff6600",
    "#85b5ba",
    "#f4faff"
  ]
}
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

I just tested on my side and it works fine. Kindly mark sure you're using the latest desktop version.

here're some similar threads could be your reference:

https://community.powerbi.com/t5/Service/Colours-Change-when-report-is-published-to-the-Service/td-p/399083 

workaround provided:

https://community.powerbi.com/t5/Service/Data-Colours-change-in-Power-BI-Service/m-p/165403 

 

Community Support Team _ Dina Ye
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

3 REPLIES 3
jacksonfan
Frequent Visitor

Microsoft has acknowledged the issue of Power BI colors changing when reports are published from Power BI Desktop to the web service. However, they have not provided a permanent fix as of the latest reports.

Step-by-Step Guide for New Users:

  1. Clear Cache on Power BI Desktop:

    • Open Power BI Desktop.

    • Navigate to the File menu in the top-left corner.

    • Go to Options and settings and select Options.

    • In the left-hand menu under Global, click on Data Load.

    • Find the option Clear cache and click on it to clear the cache data from Power BI Desktop.

  2. Delete the Original Report from Power BI Service:

    • Open your web browser and log in to the Power BI Service

    • In the Workspace where your report is located, find the report you want to delete.

    • Select the report, click the More options (three dots) next to the report name, and choose Delete.

    • Confirm the deletion when prompted.

  3. Re-upload the Correct color Report to Power BI Service:

    • Go back to Power BI Desktop.

    • After clearing the cache, re-open your report or ensure the latest version is open.

    • Click on Publish in the top-right corner of the Power BI Desktop window.

    • Select the appropriate Workspace in Power BI Service and click Select to upload the report again.

  4. Verify the Fix:

    • Once the report is re-uploaded, go to the Power BI Service in your web browser.

    • Check the colors in the visuals to ensure they now match the colors seen in Power BI Desktop.

This should resolve the color differences between the Power BI Desktop and Power BI Service.

v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

I just tested on my side and it works fine. Kindly mark sure you're using the latest desktop version.

here're some similar threads could be your reference:

https://community.powerbi.com/t5/Service/Colours-Change-when-report-is-published-to-the-Service/td-p/399083 

workaround provided:

https://community.powerbi.com/t5/Service/Data-Colours-change-in-Power-BI-Service/m-p/165403 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous,

 

try this.

 

{
  "name": "MyTheme",
  "dataColors": [
    "#364652",
    "#ff6600",
    "#85b5ba",
    "#f4faff"
  ]
}
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors