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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Johan-MTM
Helper III
Helper III

Sort month

Hi!
I have a slider with Year and month where I want year sorted decending but month sorted from Jan to Dec.
I'm sure I'm missing the obviosly but never the less - I need help 🙂

JohanMTM_0-1694163649571.png

 

1 ACCEPTED SOLUTION
eliasayyy
Memorable Member
Memorable Member

hello @Johan-MTM  create a new column in your table called month number 

either 

Month Number = MONTH('Table'[Date])


or 

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


if you use the latter , change the data type to whole number after

after you create your month number , press on the month name column and in the ribbon above in the table tools , you will find something called sort by column , press it and choose month number

View solution in original post

2 REPLIES 2
eliasayyy
Memorable Member
Memorable Member

hello @Johan-MTM  create a new column in your table called month number 

either 

Month Number = MONTH('Table'[Date])


or 

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


if you use the latter , change the data type to whole number after

after you create your month number , press on the month name column and in the ribbon above in the table tools , you will find something called sort by column , press it and choose month number

Hi @eliasayyy and thank you for your reply! is this the way to do it?

JohanMTM_0-1694421739007.png

 

Worked well, now the month are sorted. 



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.