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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Brandaris
Helper I
Helper I

Timelapse between two moments on different dates

Hello,

 

Is is possible to calculate the amount of hours and minutes between 2 moments on 2 different days? An then showed in hh:mm?

 

For Example:

 

Start moment: 14-03-2022 14:03:42  (dd-mm-yyyy hh:mm:ss)

End moment:  16-03-2022  13:40:39 (dd-mm-yyyy hh:mm:ss)

 

Timelapse: 47:36:57 (hh:mm:ss)

 

Thank you very much for your help.

Kind regards,

Brandaris

1 REPLY 1
ppm1
Solution Sage
Solution Sage

The best approach is to just do a custom column with [End moment] - [Start moment] which will result in a duration. When you close and load it will convert to decimal format (in days). You can then do your measures and use FORMAT([Your Expression], "hh:mm:ss") to display it as text (vs. converting it to text in Power Query and then not being able to do calculations on it easily). See the article below for more info.

Calculate and Format Durations in DAX – Hoosier BI

Pat

 

Microsoft Employee

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors