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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
ADPowerBI1
Responsive Resident
Responsive Resident

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.

ADPowerBI1
Responsive Resident
Responsive Resident

Hi, please do this as a calculated column:

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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