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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
morrisphil84
New Member

Data color

I'm having problems with the data colors of my pie charts.  When I return to my report the next day the colors have all altered.  Now there is some that are the same colour for different segments as well as the legend generally not matching across each pie chart.  Is there anything I can do to stop this happening?

 

 

Thanks

Phil

1 ACCEPTED SOLUTION

hi  @morrisphil84 

To my knowledge, it is that you have set sort visual by Value(the fields you drag into Values)

Then after the dataset is refreshed and data is updated.

7.JPG

After data is updated

8.JPG

Then legend color is changed.

 

So for your case, you just need to sort the visual by Legend field(In my case, it is [Type])

9.JPG

By the way, You might need Sort by column later on.

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

https://radacad.com/sort-by-column-in-power-bi

 

and here is my sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
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
v-lili6-msft
Community Support
Community Support

hi  @morrisphil84 

What is your browser? It works well on my side, if possible, could you please share some screenshots and your sample pbix file for us have a test.

 

Regards,

Lin

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

Hi,

 

Thanks for replying.  I have tried with both chrom and edge and both encounter the same issue.

 

As I'm new to this I have used the online service before trying the desktop (but I can only open the dataset there not my created reports).correctpowerbi.jpgincorrect.jpg

 

The first image below is showing the correct legend, whilst the second image has swapped the colours round for agree and strongly disagree.  

 

Thanks for your support

Phil

hi  @morrisphil84 

To my knowledge, it is that you have set sort visual by Value(the fields you drag into Values)

Then after the dataset is refreshed and data is updated.

7.JPG

After data is updated

8.JPG

Then legend color is changed.

 

So for your case, you just need to sort the visual by Legend field(In my case, it is [Type])

9.JPG

By the way, You might need Sort by column later on.

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

https://radacad.com/sort-by-column-in-power-bi

 

and here is my sample pbix file, please try it.

 

Regards,

Lin

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.