Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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!