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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Gianpie
New Member

Months Not Sorted Correctly

Hi Everyone,

 

I'm new to Power BI and I'm unable to understand why my months are sorting alphabetically instead of chronologically!

I've got a sales table with Month names: January, February, March... December. But in my table/matrix visual, they show as April, August, December, February...

What I want: January → February → March → ... → December (chronological)

 

Do you have any suggestions?

1 ACCEPTED SOLUTION
DanieleUgoCopp
Resolver III
Resolver III

Hello,
when months appear in alphabetical order it usually means Power BI is reading them as plain text, so it has no idea what January or February mean in time. The fix is to give Power BI a numeric reference and explicitly tell it to use that for sorting.

The usual approach is to create an extra column that converts each month name into a number from 1 to 12. This can be done in Power Query or with DAX, the important part is that the column is numeric and matches each month correctly. Once that column exists, go to the Data view, select the Month column, open Column tools, choose Sort by column and point it to the numeric month column you created. From that moment on, Power BI will always use chronological order instead of alphabetical, in every visual.

A common reason this does not work is creating the sort column but never applying Sort by column, or using a separate DAX table without creating a relationship back to the Month field. In those cases Power BI still falls back to text sorting.

You can also include the month inside 
- Power Query Editor → Add Column → Custom Column
- Formula: Date.FromText("1-" & [Month] & "-2025").Month
- Name: "Month Sort" → Close & Apply

View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@Gianpie 

pls see the offical document below.

 

 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?wt.mc_id=DP-MVP-500...

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




cengizhanarslan
Super User
Super User

You need a numeric month index and then sort Month by that column.

 

1) In your table, create (or confirm you have) a month number column:

MonthNo = MONTH ( 'Sales'[Date] )

 

2) Go to Data view

3) Select the Month column

4) In the ribbon, choose: Column tools → Sort by column → MonthNo

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
DanieleUgoCopp
Resolver III
Resolver III

Hello,
when months appear in alphabetical order it usually means Power BI is reading them as plain text, so it has no idea what January or February mean in time. The fix is to give Power BI a numeric reference and explicitly tell it to use that for sorting.

The usual approach is to create an extra column that converts each month name into a number from 1 to 12. This can be done in Power Query or with DAX, the important part is that the column is numeric and matches each month correctly. Once that column exists, go to the Data view, select the Month column, open Column tools, choose Sort by column and point it to the numeric month column you created. From that moment on, Power BI will always use chronological order instead of alphabetical, in every visual.

A common reason this does not work is creating the sort column but never applying Sort by column, or using a separate DAX table without creating a relationship back to the Month field. In those cases Power BI still falls back to text sorting.

You can also include the month inside 
- Power Query Editor → Add Column → Custom Column
- Formula: Date.FromText("1-" & [Month] & "-2025").Month
- Name: "Month Sort" → Close & Apply

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.