cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Dev Camp Session 30

Ted's Dev Camp - January 26, 2023

This session will provide guidance and teach campers the skills required to build Power BI reports that support multiple languages.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.