Date.IsInCurrentQuarter
DateReturns true if the date falls within the current calendar quarter.
Syntax
Date.IsInCurrentQuarter(dateTime as any) as logicalParameters
| Name | Type | Required | Description |
|---|---|---|---|
dateTime | any | Yes | A date, datetime, or datetimezone value to test. |
Return Value
logical — true if the date is in the current quarter, false otherwise.
Remarks
Date.IsInCurrentQuarter returns true if the input date falls within the same calendar quarter as today (DateTime.LocalNow()). Quarters are defined as: Q1 (Jan–Mar), Q2 (Apr–Jun), Q3 (Jul–Sep), Q4 (Oct–Dec). The function is re-evaluated on each query refresh, making it useful for current-quarter KPI dashboards and reports.
Like all Date.IsIn* functions, this matches the entire quarter period — including future dates in the current quarter. For a quarter-to-date view (only up to today), combine with an additional date comparison: Date.IsInCurrentQuarter([OrderDate]) and [OrderDate] <= Date.From(DateTime.LocalNow()).
In cloud refresh environments (Power BI Service, Dataflows), "today" is determined by the server's UTC clock. If your data is in a local timezone, quarter boundaries may differ from what you expect on your local machine.
Examples
Example 1: Filter this quarter's orders
Table.SelectRows(
Sales,
each Date.IsInCurrentQuarter([OrderDate])
)OrderID | OrderDate | |
|---|---|---|
| 1 | 38 | 1/10/2026 |
| 2 | 40 | 2/20/2026 |
| 3 | 42 | 3/8/2026 |
Example 2: Flag current-quarter rows
Table.AddColumn(
Sales,
"IsCurrentQuarter", each Date.IsInCurrentQuarter([OrderDate]), type logical
)OrderID | OrderDate | IsCurrentQuarter | |
|---|---|---|---|
| 1 | 36 | 12/15/2025 | FALSE |
| 2 | 38 | 1/10/2026 | TRUE |
| 3 | 42 | 3/8/2026 | TRUE |
Example 3: Compare current quarter vs. previous quarter
Table.AddColumn(
Table.AddColumn(
Sales,
"IsCurrentQ", each Date.IsInCurrentQuarter([OrderDate]), type logical
),
"IsPreviousQ", each Date.IsInPreviousQuarter([OrderDate]), type logical
)OrderID | OrderDate | IsCurrentQ | IsPreviousQ | |
|---|---|---|---|---|
| 1 | 35 | 10/10/2025 | FALSE | TRUE |
| 2 | 38 | 1/10/2026 | TRUE | FALSE |
| 3 | 42 | 3/8/2026 | TRUE | FALSE |