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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RenataOGardner
Helper II
Helper II

Month of year order

Hello, can you please help put the months in order?

 

On my date table, the column monthName is sorted by the monthNo, and the monthOfYear sorted by the month name, but it's still showing wrong. Many thanks!

 

RenataOGardner_0-1628418503993.png

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@RenataOGardner 

In your calendar table, create another column as follows for sorting monthOfYear  then sort your column by this new monthOfYearSort.

monthOfYearSort = INT ( FORMAT( [Dates[Date] , "yyyymm") )

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
mussaenda
Super User
Super User

Hi @RenataOGardner,

 

Try sorting your month of year column with a combination of month number and year. 

Fowmy
Super User
Super User

@RenataOGardner 

In your calendar table, create another column as follows for sorting monthOfYear  then sort your column by this new monthOfYearSort.

monthOfYearSort = INT ( FORMAT( [Dates[Date] , "yyyymm") )

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Shahfaisal
Solution Sage
Solution Sage

The column 'month of year' should not be sorted by month name, it needs to be sorted by by a combinaiton of Year & Month. See this post - https://community.powerbi.com/t5/Desktop/Sorting-by-Year-Month-and-Display-Month-Name/m-p/891004

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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