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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

@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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors