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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jonboylib
Frequent Visitor

Stacked Column Chart Sorting

I have a simple column chart displaying figures for each month of the year. Currently the chart is set to sort by month, it's beginning at 'Sep'. I would like to begin at 'Aug', as that's the forst month of my financial year. So, the first column should be 'Aug', then 'Sep, Oct, Nov, etc.'

 

See image of current display.

 

c1.png

 

How can I achieve this?

 

I don't want to change the source data (import from Excel).

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jonboylib ,

 

As far as I know, we need to add a [Month Number] column to sort [Month] column. However, calculated column as johnt75 mentioned should not be a good way. Due to [Month Number] is a calculated column based on [Month] column, this will cause a circule error in data model. 

RicoZhou_0-1657006901874.png

I suggest you to add [Month Number] in Power Query Editor by Conditional Column, and then use Sort by column.

RicoZhou_1-1657007146821.png

Result is as below.

RicoZhou_2-1657007238838.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @jonboylib ,

 

As far as I know, we need to add a [Month Number] column to sort [Month] column. However, calculated column as johnt75 mentioned should not be a good way. Due to [Month Number] is a calculated column based on [Month] column, this will cause a circule error in data model. 

RicoZhou_0-1657006901874.png

I suggest you to add [Month Number] in Power Query Editor by Conditional Column, and then use Sort by column.

RicoZhou_1-1657007146821.png

Result is as below.

RicoZhou_2-1657007238838.png

 

Best Regards,
Rico Zhou

 

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

johnt75
Super User
Super User

Add a calculated column which you can use as the sort column for the month. It could just be a simple SWITCH returning 1 for August, 2 for September etc up to 12 for July. Then set the Sort by Column for month to be the new calculated column

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors