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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Sort by Date of Birth

Dear all,

I have a table like below:

table.PNG

 

 

 

 

 

 

 

 

 

 

I want to sort the above table by "Date of Birth" (without considering the year).

i.e. after sorting, my output should look like below.

output.PNG

How can I do this? Please help.

Thank You!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Create a custom column and use the formula

Birthday = FORMAT([Date of Birth], "MM-DD")

Now sort on the Birthday column

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Create a custom column and use the formula

Birthday = FORMAT([Date of Birth], "MM-DD")

Now sort on the Birthday column

 

Anonymous
Not applicable

Thank you both of you!

dearwatson
Continued Contributor
Continued Contributor

So it looks like you are sorting by month number in year is that correct?

 

To achieve this you will need a column to faciliate the sort.

 

in this case create a column

 

Month Num = MONTH(Table1[Date of Birth])

 

then select the "date of birth" column and use the "Sort By Column" button to select "Month Num" this will sort the months in the correct order as per your screen shot.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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