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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Tulio_DL
Helper I
Helper I

How to calculate time in "hh:mm" between two columns (Example inside)

Hello everyone!

 

First of all I'd like to thank everyone participating into this community and helping each other out. I oftenly come by and find solutions in no time.

 

I've an issue calculating time length in "hh:mm" format between two columns where Column A shows the date/time of the event start and Column B shows the date/time of finish. Let me put in another words... Thinking about a helpdesk event where the client opened a ticket on a monday at 08:00 am and the technician solved his problem at 11:30 am the same day, so the total time length between "Start" to "Finish" is 03:30 in "hh:mm".

 

In addition, I need to consider just the working hours of the company in the formula, so... working hours are from 08h00 to 12h00 and from 13h00 to 17h00 (24 hour clock) and from Monday to Friday.

 

Keeping this in mind I bring the following table where the column E is the expected result.

 

Capturar.JPG

 

Thank you!

 

Diego

1 ACCEPTED SOLUTION
Tulio_DL
Helper I
Helper I

So I've managed to pull it off!

 

If you find yourself on the same situation just send me a PM that I can explain what I did

View solution in original post

1 REPLY 1
Tulio_DL
Helper I
Helper I

So I've managed to pull it off!

 

If you find yourself on the same situation just send me a PM that I can explain what I did

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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