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
lab
Frequent Visitor

sort by

Hi,

I am trying to sort by month number...

I have month number in my date table. 

I am selecting the Sort BY column under Column tools, but my chart still does not show it as an option to sort by...

...any insight on what may be going wrong would be appreciated.

 

4 REPLIES 4
amitchandak
Super User
Super User

@lab , Make sure your mark month year sort as sort column of month year

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

 

or for month

Month Year = FORMAT([Date],"mmm")
Month Year sort = month([DAte])

 

 

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

Thank you.

 In my date table...Month# is a whole number.  

JAn=1

Feb=2

MAr =3 

 

When I select that column to sort by, shouldn't that have changed my table on the report?

That's not working...

@lab , Sort Asc/desc in three dots. I think that will not come with whole number have one text and another whole number as sort column

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

@amitchandak 

Yes, that is what I have, still not working.  Could it have anything to do with my date table being built from a script?

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.

Users online (6,054)