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

Sorting X-axis in line and clustered column chart

Hi Datanauts,

 

I'm trying to show a line and clustered column chart sorted by month, which I tried to realize by plotting the months as "18_01", "18_02" etcetera. However, when I create the graph, this is the result:

 

P1.PNG

 

It appears Power BI decides to sort the X-axis by largest samples. I tried to 'sort by column', but that was not the right move. Underneath is the Excel sheet I created for use in Power BI.

 

P2.PNG

 

What is in your opinion the best / easiest way to make sure I show the same data, but sorted by month?

 

Thanks in advance,

Stefan Raets

 

 

 

1 ACCEPTED SOLUTION
kaushikd
Resolver II
Resolver II

Create a new column and extract the month only like(01..02..03) exclude the Year Part. Then Sort the Maand(i.e your column name) by New Column you have created(In Modelling Tab). This will fix your problem, if you still unable to fix the problem just share the pbix file with us we will fix that.

View solution in original post

3 REPLIES 3
kaushikd
Resolver II
Resolver II

Create a new column and extract the month only like(01..02..03) exclude the Year Part. Then Sort the Maand(i.e your column name) by New Column you have created(In Modelling Tab). This will fix your problem, if you still unable to fix the problem just share the pbix file with us we will fix that.

Thanks kaushikd,

 

It did the trick!

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
Top Kudoed Authors
Users online (964)