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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Em1278
New Member

How to Sort Month Names Chronologically in a Slicer?"

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

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Use a calendar table that has Month Name and Month Number columns. Sort the name by the number.  Join the table to your Month Name column in your data source. Use the Month Name from the new table for the slicer.

View solution in original post

Anonymous
Not applicable

Hi, @Em1278 

The solution offered by lbendlin's is very effective. 

 

And I would like to share some additional solutions below. 

 

You can also customize the sorting based on fields in the Power Query Editor. 

First click Transform data, then click Column From Examples: 

vfenlingmsft_0-1724136460697.png

 

Below you can customize the sorting by field, then click close&apply: 

vfenlingmsft_1-1724136460698.png

 

Sort MonthName by SortNum: 

vfenlingmsft_2-1724136476562.png

 

Result: 

vfenlingmsft_3-1724136476563.png

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @Em1278 

The solution offered by lbendlin's is very effective. 

 

And I would like to share some additional solutions below. 

 

You can also customize the sorting based on fields in the Power Query Editor. 

First click Transform data, then click Column From Examples: 

vfenlingmsft_0-1724136460697.png

 

Below you can customize the sorting by field, then click close&apply: 

vfenlingmsft_1-1724136460698.png

 

Sort MonthName by SortNum: 

vfenlingmsft_2-1724136476562.png

 

Result: 

vfenlingmsft_3-1724136476563.png

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

Use a calendar table that has Month Name and Month Number columns. Sort the name by the number.  Join the table to your Month Name column in your data source. Use the Month Name from the new table for the slicer.

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.