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
seenai
Helper II
Helper II

Sort by Column Error

Hi,

 

I have Date table with Column in MMM format (Jan / Feb etc).

I could not sort the month by Date Order. Help me if possible.

 

Month_MMM.jpg

1 ACCEPTED SOLUTION

Hi,

 

Please try these:

 

T_Month = FORMAT('Table'[Date],"MMM")

MonthNo = FORMAT('Table'[Date],"MM")

 

Then you can sort [T_Month] by [MonthNo].

1.jpg

 

Best Regards,

Giotto

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@seenai 

Column and Sort column should have the same granularity. So the only sort column you can use is

 

Sort Month = format(Date[date],"MM")

Hi

 

@amitchandak 

 

I have added a New Column as below :

Sort Month = format(Month_Year[Date],"MM")
 
It is giving result as 01, 02, 03, etc.
But I would like to show as Jan, Feb, Mar, Apr etc.
 
Please let me know, if any other control is there to sort the 

Hi,

 

Please try these:

 

T_Month = FORMAT('Table'[Date],"MMM")

MonthNo = FORMAT('Table'[Date],"MM")

 

Then you can sort [T_Month] by [MonthNo].

1.jpg

 

Best Regards,

Giotto

@amitchandak  & @v-gizhi-msft 

Thanks for your quick support and clarification.

My Learning : 
To sort Month in MMM format. I need a column in MM format.

Similarly

To sort Month in MMM-YY format. I need a column in YYYYMM format.

 

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.