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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AAAAAAA
Regular Visitor

Auto toggle stacked column colors

Hey there, 

Is it possible to have all columns from each of the "Actual" values only display 2 colors? Projected will always be static and it's fine to always be blue. For actuals though, each section of each column is defined by what the purchase was (laptop, cell phone, ect). Right now we've got all kinds of colors for each new text entry. Ideally we could, for example, have light and dark green only in the actual columns.

Because the data is always a unique line of text, I'm struggling to understand how to make Power BI stagger light and dark green so no two actual purchases share the same shade of color. 

Thanks in advance!

 

AAAAAAA_0-1657807857107.png

 

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @AAAAAAA 

 

It seems there are many values in your legend field. Is Purchase type used on the legend? If you want to display only 2 colors for each actual column, what do these two colors represent for? 

 

If your data is similar to below, 

vjingzhang_0-1658308295999.png

You can make a stacked colum chart like below, which has only two colors because it has only two values (Cell phone & Laptop) in the legend. 

vjingzhang_1-1658308325836.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Hey v-jingzhang,

Thank you for this input and sorry for replying so late! 

In your example, if we added one more entry to 61701 Actual [1000 | Desktop | 61701 | Actual] (for example). There would be a new part of the stack added ontop of the dark blue laptop section. I believe we could manually change the color so it matches the light blue of cell phone below, and that would be the desired aesthetic. A two toned bar that alternates color as more entries are added to it. 

That manual process though of going into the legend and telling "Desktop" to match the light blue of cell phone, so that every entry is an alternating color in relation to the entry below- Is there a way to make that happen automatically?

Thank you!


amitchandak
Super User
Super User

@AAAAAAA , In stacked visual, color is by legend not by measure, and we can not control that by measure.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.