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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
KUShane
Frequent Visitor

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 @KUShane 
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

 

Hi there,

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

KUShane
Frequent Visitor

That worked! Thank you so much!

Ahmedx
Super User
Super User

pls try this

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

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

 

 

That worked! Thank you so much!

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors