Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Data Colors Updated in 100% Stacked Column Chart - Power BI

Hi,

 

I am using 100% Stacked Column chart as given below. 

 

In the X-Axis you can see I have given two brands. I need the data colors based on this two brands and not based on the Total and Staged orders. Brand 1 should be with dark blue for total orders and light blue for staged orders. In the same way Brand 2 should be with dark red for total orders and light red for staged orders. 

 

Capture.JPG

 

I tried giving the brand names in legend and it is not accepting.

 

2.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Due to I don't know your data model, I build a sample to have a test.

Table:

1.png

I think your data model may like the table above, but you can't add the legend due to you don't have a specific column for it. And if you want to change the color of Total order and  staged order, you need to add the legend.

So, you need to transform the table in PowerQuery Editor.

Select Total Order and Stage order column and unpivote the select column. Then duplicate Brand column and merge Attribute column and new Brand column.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcipKzEsxVNJRAmEDpVgdwkKGqEIGVBSioSOMMM0ywjTLCLdGLKoMCArhsJE4IcKOgArFAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Brand = _t, TotalOrder = _t, Stage = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Brand", type text}, {"TotalOrder", Int64.Type}, {"Stage", Int64.Type}}),
    #"Unpivoted Only Selected Columns" = Table.Unpivot(#"Changed Type", {"TotalOrder", "Stage"}, "Attribute", "Value"),
    #"Duplicated Column" = Table.DuplicateColumn(#"Unpivoted Only Selected Columns", "Brand", "Brand - Copy"),
    #"Merged Columns" = Table.CombineColumns(#"Duplicated Column",{"Attribute", "Brand - Copy"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"Merged")
in
    #"Merged Columns"

 

 Result:

2.png

Just like  

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

Hi @Anonymous 

Due to I don't know your data model, I build a sample to have a test.

Table:

1.png

I think your data model may like the table above, but you can't add the legend due to you don't have a specific column for it. And if you want to change the color of Total order and  staged order, you need to add the legend.

So, you need to transform the table in PowerQuery Editor.

Select Total Order and Stage order column and unpivote the select column. Then duplicate Brand column and merge Attribute column and new Brand column.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcipKzEsxVNJRAmEDpVgdwkKGqEIGVBSioSOMMM0ywjTLCLdGLKoMCArhsJE4IcKOgArFAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Brand = _t, TotalOrder = _t, Stage = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Brand", type text}, {"TotalOrder", Int64.Type}, {"Stage", Int64.Type}}),
    #"Unpivoted Only Selected Columns" = Table.Unpivot(#"Changed Type", {"TotalOrder", "Stage"}, "Attribute", "Value"),
    #"Duplicated Column" = Table.DuplicateColumn(#"Unpivoted Only Selected Columns", "Brand", "Brand - Copy"),
    #"Merged Columns" = Table.CombineColumns(#"Duplicated Column",{"Attribute", "Brand - Copy"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"Merged")
in
    #"Merged Columns"

 

 Result:

2.png

Just like  

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Greg_Deckler
Community Champion
Community Champion

@Anonymous  Not sure about that, definitely not how it is configured right now. You can only set the colors of the values like that. Can't seem to get there using a legend either. and I do not see conditional formatting available either (fx)

Greg_Deckler_0-1599706811998.png

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors