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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Curt_DA
New Member

Sorting by month in Chronological Order

I have looked at many of the posts on trying to Sort Data by Month in chronological order and the solutions seem ridiculously complicated. If for example you have a simple two column table which consists of "Month" and a "Sales" for that month and you do a simple bar chart the months sort and display alphabetically, not chronologically. It appears that if you add an additional column consisting of numbers and use that to "force" a chronological sort order then the numbers display on the axis instead of the month names (I want the month names to appear). Is it really the case that PowerBI does not have embedded intelligence to recognize that a month name is a chronological attribute and that data should by default sort in chronological order (unless you explicitly select some other sort option)??? My question is simply; what is the easiest solution to sorting by month in chronological order while having the month name appear on the axis instead of some made up field name that was created solely to force a sort in the desired order.

 

Thanks...

4 REPLIES 4
Eric_Zhang
Microsoft Employee
Microsoft Employee

@


@Curt_DA wrote:

I have looked at many of the posts on trying to Sort Data by Month in chronological order and the solutions seem ridiculously complicated. If for example you have a simple two column table which consists of "Month" and a "Sales" for that month and you do a simple bar chart the months sort and display alphabetically, not chronologically. It appears that if you add an additional column consisting of numbers and use that to "force" a chronological sort order then the numbers display on the axis instead of the month names (I want the month names to appear). Is it really the case that PowerBI does not have embedded intelligence to recognize that a month name is a chronological attribute and that data should by default sort in chronological order (unless you explicitly select some other sort option)??? My question is simply; what is the easiest solution to sorting by month in chronological order while having the month name appear on the axis instead of some made up field name that was created solely to force a sort in the desired order.

 

Thanks...


@Curt_DA

My opinion is that it is always a good practice to use  the full date instead of a single month name, eg, 2017-01-01, 2017-02-01 instead of Jan, Feb. Then Power BI would recogine the date filed and show as how you let it show. See the attached demo.

 

Capture.PNGCapture.PNG

 

 

biconsba
Frequent Visitor

Is it possible to sort By year then by month and then by day?

Thank you for your reply. You are right it's a good practice for time dimension but in some cases you need to use a special sorting even in time dimension (no doubt in all other dimension types) . e.g. Year descending, Month Ascending.

Any way to do it in Power BI?

mattbrice
Solution Sage
Solution Sage

Create another column like "Month Number", then use the "Sort by Column" in table Modeling section on the "Month Name" column.  That is what the feature is intented for.  So when you put the month name in a visual it sorts the way you expected "Jan, Feb, Mar, Apr...."

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.