Date.QuarterOfYear

Date.QuarterOfYear is a Power Query M function that returns a number from 1 to 4 indicating which quarter of the year the date falls in. You can provide a date, datetime, or datetimezone value.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

Date.QuarterOfYear( dateTime as any ) as nullable number

Description

Returns a number from 1 to 4 indicating which quarter of the year the date dateTime falls in. dateTime can be a date, datetime, or datetimezone value.

Examples

Find which quarter of the year the date #date( 2011, 12, 31 ) falls in.

// Output: 4
Date.QuarterOfYear( #date( 2011, 12, 31 ) )

Learn more about Date.QuarterOfYear in the following articles:

Other functions related to Date.QuarterOfYear are:

BI Gorilla Blog

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/date-quarterofyear
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.