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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
RashmitaR
Helper IV
Helper IV

Sorting month name descending in order

Hi I am usinga a Matrix where in i have year and month name in my columns.Could someone please suggest a way to display the month name in descending order (i.e september,august,july,june,etc.)

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@RashmitaR

 

You can create a MonthNum column with following formula. Then select the Month column and make it sorted by MonthNum column.

MonthNum = 
- MONTH ( Table1[Date] )

Sorting month name descending in order_1.jpgSorting month name descending in order_2.jpg

 

Best Regards,

Herbert

View solution in original post

5 REPLIES 5
v-haibl-msft
Microsoft Employee
Microsoft Employee

@RashmitaR

 

You can create a MonthNum column with following formula. Then select the Month column and make it sorted by MonthNum column.

MonthNum = 
- MONTH ( Table1[Date] )

Sorting month name descending in order_1.jpgSorting month name descending in order_2.jpg

 

Best Regards,

Herbert

Hi @v-haibl-msft

 

I tried your solution.It is working .Thanks

@RashmitaR

 

In my last screenshot of matrix report, the Month names are in descending order like Sep, Aug, July, June in 2016.

What is your expected result?

 

Best Regards,

Herbert

Anonymous
Not applicable

Within Query Editor, you can create a conditional column and assign a numeric value to the column based on months. In Power BI, in the Data View, you can use the 'Sort by Column' feature to sort the month column based on values of the (conditional) column you created in Query Editor.

 

Thanks

Kaz

BhaveshPatel
Community Champion
Community Champion

Hi There,

 

Please follow this blog post for more information.

It is Straight Forward and Requires little tricks.

 

https://community.powerbi.com/t5/Desktop/Sorting-by-Month-as-Text-Jan-Feb-Mar-etc/td-p/9237\

 

Thanks & Regards,

Bhavesh

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.