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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Sort by month number isnt sorting the months

Hi,

 

I have a calculated date table with month number being generated by

 

Month = month('Calendar'[Date])

 

The month name is generated by

 

Month Name = FORMAT('Calendar'[Date], "MMM")

 

The issue is if I even use the srt by column for month name to be month it does not put them in the correct order...

 

Any help appreciated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,it should do in a visual, if you sort on the month name column. Make sure sort column is correctly marked

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @rodrigosan @amitchandak 

 

I have tried sorting on the visual and still experiencing this issue

Capture.PNG

 It is a DAX calculated table and sort by column is set to month

 

Thanks

 

rodrigosan
Resolver III
Resolver III

Hello, was your date table created in DAX or Power Query?

amitchandak
Super User
Super User

@Anonymous ,it should do in a visual, if you sort on the month name column. Make sure sort column is correctly marked

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

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
Anonymous
Not applicable

That resolved the issue.. thanks 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors