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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.