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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

sorting month in dropdown

Hi all, I have filter with month.
But months is not sorting correctly

pic 1.PNG

 

it's sort by alphabet, how can I sort by month?

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could create a month number column in Edit queries or create a new calendar with month number column, then select the "month name" column and click Modeling->sort by-> "month number" column.

Please refer to the following:

https://community.powerbi.com/t5/Desktop/Sorting-Slicer-to-Month/td-p/294383

https://community.powerbi.com/t5/Desktop/Sorting-the-Slicer/td-p/24565

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could create a month number column in Edit queries or create a new calendar with month number column, then select the "month name" column and click Modeling->sort by-> "month number" column.

Please refer to the following:

https://community.powerbi.com/t5/Desktop/Sorting-Slicer-to-Month/td-p/294383

https://community.powerbi.com/t5/Desktop/Sorting-the-Slicer/td-p/24565

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

judspud
Solution Supplier
Solution Supplier

Hi @Anonymous,

 

You need to sort the month name by the month number.

 

Go to your calendar table if you have one and change the sort order of the month name to sort by month number.

 

Thanks,

 

George

Anonymous
Not applicable

I don't have calendar table

Hi @Anonymous ,

 

Is it possible to create a column in your existing table which identifies the month number?

 

You can use month(datefield) to extract the month number from a date field.

 

If possible, could you share a image on the data table or a list of the columns you have?

 

Thanks,

George

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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