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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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