Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Good morning everyone,
I'm trying to assign automatically a color to each region (see below), without having to select it manually under the visual options.
Also, in the bar chart there's a drill down to country level, and I'm wondering wether it could be possible to maintain the Region colors when I get to the country view:
The process of assigning colors should be automatic since the number of Regions is not static, and each Region might be split into two in the future.
Thanks for your help.
Solved! Go to Solution.
Hey @Alex-PBIComm ,
this is not possible as Power BI does not support a dynamic assignment of colors to column values.
You can achieve something that comes close to this, if store the color you want to use for a region/country inside the table and use conditional formatting to apply the colors accordingly, but this can become tedious.
The solution works something like this:
Hopefully, this provides you with some ideas to tackle your challenge.
Regards,
Tom
You might want to take a look at this.
https://radacad.com/set-power-bi-data-color-all-visuals-to-follow-same-color-for-the-same-data-point
Hey @Alex-PBIComm ,
this is not possible as Power BI does not support a dynamic assignment of colors to column values.
You can achieve something that comes close to this, if store the color you want to use for a region/country inside the table and use conditional formatting to apply the colors accordingly, but this can become tedious.
The solution works something like this:
Hopefully, this provides you with some ideas to tackle your challenge.
Regards,
Tom
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
104 | |
98 | |
97 | |
38 | |
37 |
User | Count |
---|---|
153 | |
122 | |
75 | |
73 | |
64 |