Date.QuarterOfYear
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a number between 1 and 4 for the quarter of the year from a DateTime value.
Date.QuarterOfYear(dateTime as datetime) as nullable number
| Argument | Description |
|---|---|
| dateTime | The DateTime to check against. |
Date.QuarterOfYear(DateTime.FromText("2011-03-21")) equals 1
Date.QuarterOfYear(DateTime.FromText("2011-11-21")) equals 4
Show: