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
robertokzl
Frequent Visitor

Clustered and stacked chart sorted by two columns

Hello all, 

 

I'm trying to use a clustered and stacked chart to compare 2 segments of same company in 2019 and 2020, and after sort by value and company name

I already have 2020 in a stecked chart divided by company and segment.

Capturar3.JPG

How can i insert 2019 at same chart? 

 

Both file are avaliable in:

2019 - http://www.anfavea.com.br/docs/siteautoveiculos2019.xlsx 

2020 - http://www.anfavea.com.br/docs/siteautoveiculos2020.xlsx

at table IV. ( in itens Automóveis (Passanger Vehicles) and Comerciais leves (Light commercial Vehicles)

 

Thanks,

 

1 ACCEPTED SOLUTION

@robertokzl 

 

Please see the below photo for reference. You need to click the three dots on the visual to change it to sort by Company Year, and expand the drill down to the year level in the hierarchy. In the screenshot below SalesTerritoryCountry = Company, Quarter=Year, Color= whatever column gives you PV and light CV

 

Other options is to use a custom visual from marketplace, some of these allow tiling of the visuals with the small multiple feature which may be more in line to what you want: https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381825?tab=Overview

ClusteredStackedColumn.png


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

5 REPLIES 5
v-deddai1-msft
Community Support
Community Support

Hi @robertokzl ,

 

In Power BI Desktop, it’s not possible to create a chart which can combine both Clustered and Stacked column chart together. The expected result as you posted can’t be achieved.

 

As a workaround, as mentioned by AllisonKennedy , create a DimDate table and create a custom hierarchy like: year - company. Use it in x-axis, and you can use drill down to view detailed message.

 

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

 

Best Regards,

Dedmon Dai

 

AllisonKennedy
Super User
Super User

Can you please draw a picture of your desired result? How do you want 2019 displayed on the existing chart? You already have a lot of information displayed there, so adding more will make it difficult to read, though you could potentially look at trying to add DimDate[Year] to the Axis underneath Company Name, then drill down to expand each company name to display both years. This will impact your line visual though, so not sure how you want this displayed, maybe Year first, then Company Name???

Do you have a DimDate table? https://excelwithallison.blogspot.com/2020/04/dimdate-what-why-and-how.html

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hi Allison,
I already have chart below and i just would like to see 2019 exactly like 2020 but without pareto line.

Like FCA with 2 collumns one for 2020 and other for 2019 stacked with PV and Light CV like current chart.

If i user a DimTable and drill down i can not compare 2020 and 2019 side by side with all company overview that what i expect to have!  

Thanks Allison.

Capturar3.JPG

 

@robertokzl 

 

Please see the below photo for reference. You need to click the three dots on the visual to change it to sort by Company Year, and expand the drill down to the year level in the hierarchy. In the screenshot below SalesTerritoryCountry = Company, Quarter=Year, Color= whatever column gives you PV and light CV

 

Other options is to use a custom visual from marketplace, some of these allow tiling of the visuals with the small multiple feature which may be more in line to what you want: https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381825?tab=Overview

ClusteredStackedColumn.png


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hi @robertokzl ,

 

In Power BI Desktop, its not possible to create a chart which can combine both Clustered and Stacked column chart together. Because it cant determine which group of series need to be clustered, which group of series need to be stacked. And its still not supported to add multiple fields into Legend of a chart.

 

Please vote for the similar idea: https://ideas.powerbi.com/ideas/idea/?ideaid=db76a137-4324-4d6c-b5c5-cb85f9b6950a to improve the power bi

 

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

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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