Time.Minute

Time

Returns the minute component from a time, datetime, or datetimezone value.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Time.Minute(dateTime as any) as nullable number

Parameters

NameTypeRequiredDescription
dateTimeanyYesThe time, datetime, or datetimezone value to extract the minute from.

Return Value

numberThe minute component (0 through 59).

Remarks

Time.Minute returns the minute component as a number from 0 to 59 from a time, datetime, or datetimezone value. If the input is null, the function returns null.

Examples

Example 1: Extract minute from OrderLog Timestamp

Table.AddColumn(
    Table.SelectColumns(
        Table.FirstN(OrderLog, 5),
        {"LogID", "Timestamp"}
    ),
    "Minute", each Time.Minute([Timestamp]), Int64.Type
)
Result
LogID
Timestamp
Minute
1L0011/15/2024 9:30:00 AM30
2L0021/16/2024 2:15:00 PM15
3L0031/18/2024 11:00:00 AM0
4L0041/20/2024 8:45:00 AM45
5L0052/1/2024 4:20:00 PM20

Example 2: Extract minute from a scalar time

#table(
    type table [Time = time, Minute = number],
    {{#time(14, 30, 45), Time.Minute(#time(14, 30, 45))}}
)
Result
Time
Minute
114:30:4530

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks