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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Anonymous
Not applicable

Date End Date from Start Date Column

Hello,

I am trying to calculate an end date column for a program based off a start date column and a program lenght column. Below is the DAX I am using. It pulls over some dates, but not all. Any ideas?

 

Expiration Date = DATEADD('LCD Program Tracking'[Start date],[Program Length],MONTH)
 
KUShane_0-1702062126056.png

 

 
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

Expiration Date =EDATE('LCD Program Tracking'[Start date],[Program Length])

View solution in original post

6 REPLIES 6
Ritaf1983
Super User
Super User

Hi @Anonymous 
Datedadd doesn't work for the overlapping year.

Please update the formula to :

end date = EDATE('Table'[start date].[Date],[program lenth])
PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Hi there,

I am drawing a blank. My current lenght column is in months. How do I update it to calculate by weeks?

Anonymous
Not applicable

That worked! Thank you so much!

Ahmedx
Super User
Super User

pls try this

Expiration Date =EDATE('LCD Program Tracking'[Start date],[Program Length])
Anonymous
Not applicable

I am drawing a blank. It is calculating my new expiration date column correctly. However, I am wanting the length to be in weeks instead of months. How would I change that?

KUShane_0-1705959979083.png

 

 

Anonymous
Not applicable

That worked! Thank you so much!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.