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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
vickychill
Frequent Visitor

Creating Stacked column chart with more than one X-axis

Hello community,

 

I have a table something like below and want to show the data as below for each year in one column chart. I read people suggesting to unpivot the table but the table is huge (with more than 10K rows) and will make this complex. Is there an easier way to do this?

  

Product IDSales 2021Sales 2022Sales 2023
1100102104
2200200210
3300350360
4400401420

vickychill_0-1685657401017.png

 

 

Thank you in advance.

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Unpivoting is the only and therefore the best way.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors