Duration.Hours

This function retrieves the number of hours from the specified duration.

Syntax

Duration.Hours(duration as nullable duration) as nullable number

About

This function retrieves the number of hours from the specified duration.

Explanation

Retrieve the number of hours from a given duration value by utilizing the Power Query function MDuration.Hours. For example, when applying this function to a duration value of 5 days, 4 hours, 3 minutes, and 2 seconds (#duration(5, 4, 3, 2)), the output will be 4 hours.