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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
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.