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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Stuart123
Regular Visitor

Show months from two years on x axis of clustered column chart

Hello

 

I'm trying to show data from two years on the same clustered column chart but all the data for each month is grouped together, e.g. January shows the Jan 2021 and Jan 2022 as one column). Is there a way to show both years on the same chart?

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Stuart123 ,

If you only put month in the chart X-axis, it will automatically grouped. You should put both Year column and Month column in the X-axis.

Then click the expand button.

vkalyjmsft_0-1667898879990.png

Get the result.

vkalyjmsft_1-1667898924885.png

Best Regards,
Community Support Team _ kalyj

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

 

View solution in original post

7 REPLIES 7
v-yanjiang-msft
Community Support
Community Support

Hi @Stuart123 ,

If you only put month in the chart X-axis, it will automatically grouped. You should put both Year column and Month column in the X-axis.

Then click the expand button.

vkalyjmsft_0-1667898879990.png

Get the result.

vkalyjmsft_1-1667898924885.png

Best Regards,
Community Support Team _ kalyj

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

 

That's great, thank you 🙂

daXtreme
Solution Sage
Solution Sage

Months should be in the form 2021-Jan, 2022-Jan... then they will not be grouped.

Thanks for replying. That partly works but there's no way to order the months.

Of course, there is. Each column can be sorted according to another column if the corresponding values in both are in a 1-to-1 correspondence. I'd suggest at this point that you learn a bit more about Power BI. Just grab a book and read. You can go (and you should) through the Microsoft self-learning documentation on PBI.

amitchandak
Super User
Super User

@Stuart123 , Use a date table with field like MOnth and Date, Take month on axis and year onf legend 

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks for replying. Not sure what this solution means in practice though.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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