简体   繁体   中英

PowerBI Custom Legend and Column Colours in Stacked bar chart

so I am trying to customise the colours for the legends. Basically what I am trying to do is to group the legends by colour. For example image we have refineries which are in different locations in the world. So for example if refineries 1, 2 & 3 are in Asia they should be coloured in green, and if refineries 4 & 5 are in Europe, then they should be coloured in blue. An example of this is shown below (created by excel):

在此处输入图片说明

Currently in PowerBI, this is my stacked chart:

在此处输入图片说明

So as you can see, the colours are dependent on the refineries, rather than on the locations (which are stored in a related Locations table).

Any idea of how this can be tackled in PowerBI please?

Much appreciated!

It would be very useful for BI developers if you could customize and format a little bit in Power BI using the built-in tools and expressions, something similar to SSRS, where you can set a color property based on the report data. Hope features like that be implemented soon.

As far as I know you can use Data Colors Pane:

在此处输入图片说明

Very manual and I think it breaks when new legends are added.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM