Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have a report with two pie charts. One has 4 items in the Legend, the other has the 4 same items, plus one more. Given that the values in the two are different each legend series has different colors in the different charts. This is confusing because Series A in the left chart is blue, but in the right chart it is orange. I know that I can manually assign colors for legend/series values, but I'm hoping to find something more dynamic. A way to "link" the two charts together such that their color picking algorithm can assign the same color to the same series value.
Solved! Go to Solution.
Most of the chart does not support conditional formatting once a legend is taken. If it supports you can have color measure like this and use that
Color Date = if(FIRSTNONBLANK(Table[Cat],Blank()) = "Cat1","lightgreen","red")
Check and Vote for the Idea: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15540297-global-data-colors
The one you want is there in the idea
Hi amitchandak,
I have 2 pie charts with more than 50 suppliers and they pick different colour. I tried to fix manually but its very hectic and cant keep updating colours one by one. Please suggest some wayout.
Most of the chart does not support conditional formatting once a legend is taken. If it supports you can have color measure like this and use that
Color Date = if(FIRSTNONBLANK(Table[Cat],Blank()) = "Cat1","lightgreen","red")
Check and Vote for the Idea: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15540297-global-data-colors
The one you want is there in the idea
In the format options for the pie chart, in the Data Colors area, you can set the color for each category. So you can make them match up.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
65 | |
62 | |
55 |
User | Count |
---|---|
171 | |
109 | |
105 | |
73 | |
71 |