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

Month Day Calendar table

Hi Everyone,
 
I created a new CALENDAR table for the below column:
Month Day = FORMAT([Date],"MMM dd") & " " & IF( FORMAT([Date],"dddd") = "Sunday", FORMAT([Date],"ddd" , "" ))
 
sraj_0-1646169409702.png

 

sraj_1-1646169505876.png

 

 

Sort z-A gives this 

 

sraj_0-1646169772600.png

 

 

sraj_0-1646170554533.png

 

Not sure how do I fix this, can someone please advise.

 

 

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

HI @sraj 

 

Add another column with this code:
MonthDay NO. = FORMAT([Date],"MMdd")

 

then sort your Month Day column with MonthDay NO.

VahidDM_0-1646171497358.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

 

View solution in original post

5 REPLIES 5
sraj
Responsive Resident
Responsive Resident

Ok, that worked..I think I understood it wrong but tried the sorting of the column with the new column you suggested and that worked.  Awesome!! Thank you very much!!

VahidDM
Super User
Super User

HI @sraj 

 

Add another column with this code:
MonthDay NO. = FORMAT([Date],"MMdd")

 

then sort your Month Day column with MonthDay NO.

VahidDM_0-1646171497358.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

 

sraj
Responsive Resident
Responsive Resident

@VahidDM - Do you mind helping again? After I made that I saw that if I run it for the last 4 months that includes Dec 2021, this goes after the Jan 2022 & Feb 2022.  So I updated the Month day no with the year 

MonthDay NO. = FORMAT([Date],"MMddYYYY") and added year to the 
Month Day = FORMAT([Date],"MMM dd YYYY") & " " & IF( FORMAT([Date],"dddd") = "Sunday", FORMAT([Date],"ddd" , "" )) ...But this still didnt help, can you please advise on what I am missing here?
 
 

 

sraj_0-1646771560993.png

 

@sraj 

 

Can you share your PBIX file (after removing sensetive data)?

 


Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

sraj
Responsive Resident
Responsive Resident

@VahidDM 

I do not have the option to attach a file here.

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.