Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone
I'm sure this is an easy one but it's tripping me up.
I have two tables, both containing start and finish times and a power query calculated colum to work out the duration:
In each table, I have been using the following function to change the duration to an hour and min output:
Solved! Go to Solution.
Try adding them after summing each like this.
VAR Total_Time = SUM('Module Repairs'[Time taken - Duration]) + SUM('Travel Time'[Total travel duration])
VAR _hrs = (Total_Time) * 24
VAR hrs = INT(_hrs)
VAR mins = ROUND((_hrs - hrs) * 60, 0)
RETURN
FORMAT(hrs,"00") & "h " & FORMAT(mins,"00") & "m "
Try adding them after summing each like this.
VAR Total_Time = SUM('Module Repairs'[Time taken - Duration]) + SUM('Travel Time'[Total travel duration])
VAR _hrs = (Total_Time) * 24
VAR hrs = INT(_hrs)
VAR mins = ROUND((_hrs - hrs) * 60, 0)
RETURN
FORMAT(hrs,"00") & "h " & FORMAT(mins,"00") & "m "
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 74 | |
| 50 | |
| 47 | |
| 44 |