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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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

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

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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