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
kjenki
Frequent Visitor

Setting a Specific Day of the Month in Column

I am trying to set a specific day in my date column. I created a custom column based off of a date column called "First Detected" where I want to add one month and then set the day of the date to always be the 3rd of the month. I was able to easily figure out how to set the month with the following formula 

 

= Table.AddColumn(#"Added Custom", "Reported", each Date.AddMonths([First Detected],1))

 

but cannot figure out how to always set the day to be the 3rd of the month. Any help is appreciated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kjenki , Try like this


= Table.AddColumn(#"Added Custom", "Reported", each Date.AddDays(Date.EndOfMonth(Date.AddMonths([First Detected],-1)),3))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@kjenki , Try like this


= Table.AddColumn(#"Added Custom", "Reported", each Date.AddDays(Date.EndOfMonth(Date.AddMonths([First Detected],-1)),3))

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.