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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate expected end date based on start date and number of days

I have a start date column and a number of days column, want to find expected end date. 

 

Start DateNumber of DaysExpected End Date
1/1/202062 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Try use Date.AddDays() function.

https://docs.microsoft.com/en-us/powerquery-m/date-adddays 

Result:

2.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

View solution in original post

7 REPLIES 7
negi007
Community Champion
Community Champion

@Anonymous  create a calculated column using below dax syntex in your data table 

 

Expected_End_Date = DATEVALUE(Date_Data[Start_Date].[Date]+Date_Data[Number_Of_Days])
 
End_Date.PNG



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

amitchandak
Super User
Super User

@Anonymous , create a new column

expected end date =[Start Date]+ [Number of Days Expected End Date]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I'm getting the following error? 

 

ErrorMessageDateValue.jpg

@AnonymousYou need to add the new column in powerbi desktop view not in power query window. There you can add new column which can take + operator to arrive at expected end date. 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

az38
Community Champion
Community Champion

Hi @Anonymous 

try column

Expected End Date = [Start Date] + [Number of Days]

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

FYI: I got this error message: 

Expression.Error: We cannot apply operator + to types Date and Number.
Details:
Operator=+
Left=7/30/2019
Right=203

Anonymous
Not applicable

Hi @Anonymous ,

 

Try use Date.AddDays() function.

https://docs.microsoft.com/en-us/powerquery-m/date-adddays 

Result:

2.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.