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

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

Reply
Anonymous
Not applicable

How to sort axis based on month in power bi

Hi All,

 

I had problem when i am sorting the axis. In my report the x-axis is shown as (period_name) JAN-09,FEB-10....etc 

for this i had a column as Jan-09,feb-09..........dec-09 and Jan-10,feb-10.......dec-10 . i also had additional column for the( period_num ) as 1,2,3,4........12. when i am trying to sorting the month based on month number i am getting the followign error. 

 

 
 

Sorting Error.jpg

Need help to sort this...Thanks in advance

Thanks & regards,

Prabhu

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can refer to the following the link to create a custom sort table to set sort order of your table field:

Custom Sorting in Power BI  

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

You can refer to the following the link to create a custom sort table to set sort order of your table field:

Custom Sorting in Power BI  

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

Your sort column should have a format like YYYYMM

 

sort month = format(date,"YYYYMM")

 

This one should work fine.

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Users online (4,951)