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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
vishu263
Helper II
Helper II

How do I sort the Month names in Slicer in chronological order

Hello,

 

I am using a direct query and do not have the access to the data. Hence I cannot use 'sort by' other column to sort the months in chronological order. Is there any other way to get the months in chronological order inside the slicer.

Currently, I am getting the below sequence.

Capture.PNG

Thank you.

 

 

 

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @vishu263 
You can add a new table (takes only 3 mins) by entering all months and month's no like this in power bi. Please follow the below steps:

Uzi2019_1-1697180406864.png

 



Uzi2019_0-1697180355360.png

 

As you can see my month is exactly as your's in desc order alphabetically.

Uzi2019_2-1697180574935.png

Follow this relationship to connect your table with newly created table.

Uzi2019_3-1697180655646.png

Then sort you Month's of newly created table according to Month's No.

Uzi2019_4-1697180757523.png

Then take the month in slicer from newly created table{ Month , Month No}.

Uzi2019_5-1697180854035.png


your new month is in proper sorting order.


If this solution helps you please give kudos and accept my solution!
Thanks!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

4 REPLIES 4
Uzi2019
Super User
Super User

Hi @vishu263 
You can add a new table (takes only 3 mins) by entering all months and month's no like this in power bi. Please follow the below steps:

Uzi2019_1-1697180406864.png

 



Uzi2019_0-1697180355360.png

 

As you can see my month is exactly as your's in desc order alphabetically.

Uzi2019_2-1697180574935.png

Follow this relationship to connect your table with newly created table.

Uzi2019_3-1697180655646.png

Then sort you Month's of newly created table according to Month's No.

Uzi2019_4-1697180757523.png

Then take the month in slicer from newly created table{ Month , Month No}.

Uzi2019_5-1697180854035.png


your new month is in proper sorting order.


If this solution helps you please give kudos and accept my solution!
Thanks!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Super User
Super User

Hi @vishu263 ,
if you make you column as date data type then this should be auto sorting.

Uzi2019_0-1697094996783.png


If my post helps you please give kudos and accept as a solution!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @Uzi2019 , 

I do not have the access to modify the data since I am working on a direct query. The datatype can be changed at Power BI Dataset level. Please see below.

Capture.PNG

 

Thanks.

mickey64
Super User
Super User

For your reference.

 

Step 1: I make a data file in Excel.

mickey64_0-1697093783836.png

 

Step 2: I read the Excel File and add a relationship in Power BI Desktop.

 

Step 3: I change the order of 'Month' column by 'Order' column in 'Table view'.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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