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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Responsive Resident
Responsive Resident

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.

"The commonality between science and art is in trying to see profoundly - to develop strategies of seeing and showing." - Edward Tufte

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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