March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |