Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
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.
After data is updated
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])
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
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
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).
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
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.
After data is updated
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])
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 32 | |
| 18 | |
| 14 |