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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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