Duration.TotalHours
This function calculates the total number of hours included in a given duration.
Calculate the total number of hours within a specific duration value in Power Query using the MDuration function. For example, to find the total hours in a duration of 5 days, 4 hours, 3 minutes, and 2 seconds, use MDuration.TotalHours(#duration(5, 4, 3, 2)). The output will be 124.05055555555555.