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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
PamWren
Frequent Visitor

How to calculate an End date from a Start date and duration in hours in Power Bi Desktop?

HI,

 

i have a report which gives start date and time also hours to complete.  How do I add a new column which gives me the end date and time based on these two columns?

PamWren_0-1693846940253.png

 

I have tried a custom column with duration and all it does is returns an error.  The result needs to show the date and time 10 hours later that the creation date.

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, please do this as a calculated column:

NewDateTimeColumn = DateTimeColumn + TIME(TimeToResolution/Cancellation (Hours), 0, 0)

View solution in original post

2 REPLIES 2
PamWren
Frequent Visitor

Thank you - it gives an end date but not a time.  But it will work for what I need I beleive.

Anonymous
Not applicable

Hi, please do this as a calculated column:

NewDateTimeColumn = DateTimeColumn + TIME(TimeToResolution/Cancellation (Hours), 0, 0)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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