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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Tripb44
Helper II
Helper II

Date order

I am having an issue with date month sort.  I have a date table with month number.  I have ordered the date table to sort on date number but am still getting the below output.  

Tripb44_0-1623682383396.png

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Tripb44 ,

 

Please create a new column like below:

Year-month = YEAR('Table'[Date])*100+MONTH('Table'[Date])

Vlianlmsft_0-1623907771840.pngVlianlmsft_1-1623907780143.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
V-lianl-msft
Community Support
Community Support

Hi @Tripb44 ,

 

Please create a new column like below:

Year-month = YEAR('Table'[Date])*100+MONTH('Table'[Date])

Vlianlmsft_0-1623907771840.pngVlianlmsft_1-1623907780143.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The year month will sort correctly, but I need only month.  Month only is still being sorted out of order. 

amitchandak
Super User
Super User

@Tripb44 , Seem like you have a month column,  have you created s month sort column for that and marked as sort column

Month = FORMAT([Date],"mmmm")
Month sort = FORMAT([Date],"mm")

 

mark Month sort  as the sort column for month

 

Sortnewribbion.png

 

How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c

I did as you did but am still having issues with the sort.  

Tripb44_0-1623683380899.pngTripb44_1-1623683402756.png

 

@Tripb44 , I think still sort column is not correctly set, make sure table is also correct.

 

refer my video

How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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