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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Stuart123
Regular Visitor

How to create a clustered column chart with multiple years

Hello

 

I'm trying to create a clustered column chart. The x axis has the months of the year. However, I want to be able to compare two years at once (so there is a column for January 2021 and right next to it a column for January 2022, then Feb 2021 and Feb 2022 etc).

The data for the 2 years are coming from different sheets but the variables are the same.

 

Thanks

2 REPLIES 2
Stuart123
Regular Visitor

Thank you @amitchandak for your reply. As I'm new to Power BI I'm not sure what this means:  

Stuart123_0-1663715544106.png

 

amitchandak
Super User
Super User

@Stuart123 , One way is month on axis and year on legend 

 

Month Year = FORMAT([Date],"mmm")
Month Year sort = month([DAte]) //mark this as sort column of month 

 

 

Else use month year column sorted on the column given below

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"mmyyyy")

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.