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.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |