Forum Discussion
How to disabled legend color changes ?
- 5 years ago
Hi Anonymous
If so, I think it would be better to fix the sites in the legend. You can try adding a Dim table which includes all site values in a column. Create a relationship on site columns between the Dim table and your original Fact table with single direction and one-to-many cardinality. Then put Dim table's site column into the chart as Legend. In this way, the colors should be fixed.
Jing
Hi Anonymous
Did you set Data colors for legend items? I think once you set custom colors, the colors should be fixed. Maybe I should check these colors after today.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
I tried this but just after closing and reopening Power BI desktop the colors changed.
- v-jingzhang5 years ago
Community Support
Anonymous This looks strange. It doesn't happen at my side. Which version of Power BI Desktop are you using?
- Anonymous5 years agoNot applicable
- v-jingzhang5 years ago
Community Support
Hi Anonymous
I cannot reproduce it. I test on Version: 2.94.921.0 64-bit (June 2021) and Version: 2.93.641.0 64-bit (May 2021). The legend colors are fixed on both versions. You may check my pbix.
If you still have this problem, can you update your Power BI Desktop to the latest version and check the behavior again? If it also happens on the latest version, can you provide your pbix file after removing sensitive info? A simple demo which can reproduce this issue is enough.
Regards,
Community Support Team _ Jing