Date.IsInNextQuarter
DateReturns true if the date falls in the next calendar quarter.
Syntax
Date.IsInNextQuarter(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 falls in the quarter immediately after the current quarter, false otherwise.
Remarks
Date.IsInNextQuarter returns true if the input date falls within the calendar quarter immediately following the current quarter (as determined by DateTime.LocalNow()). For example, if today is in Q1 (Jan–Mar), this function returns true for any date in Q2 (Apr–Jun). The function is re-evaluated on each query refresh.
This function matches exactly one quarter: the next one. For a broader forward window spanning multiple quarters, use Date.IsInNextNQuarters. To include the current quarter as well, combine with or Date.IsInCurrentQuarter([OrderDate]).
Quarters are always standard calendar quarters. There is no support for custom fiscal quarter definitions. If your fiscal year starts in a month other than January, compute the quarter boundaries manually using Date.AddMonths and Date.StartOfQuarter.
Examples
Example 1: Filter orders expected in the next quarter
Table.SelectRows(
Sales,
each Date.IsInNextQuarter([OrderDate])
)OrderID | CustomerName | OrderDate | |
|---|---|---|---|
| 1 | 43 | Alice | 4/10/2026 |
| 2 | 44 | Bob | 5/18/2026 |
| 3 | 45 | Charlie | 6/25/2026 |
Example 2: Flag next-quarter orders
Table.AddColumn(
Sales,
"IsNextQuarter", each Date.IsInNextQuarter([OrderDate]), type logical
)OrderID | OrderDate | IsNextQuarter | |
|---|---|---|---|
| 1 | 42 | 3/8/2026 | FALSE |
| 2 | 43 | 4/10/2026 | TRUE |
| 3 | 46 | 7/1/2026 | FALSE |
Example 3: Flag current and next quarter together
Table.AddColumn(
Sales,
"CurrentOrNextQ",
each Date.IsInCurrentQuarter([OrderDate]) or Date.IsInNextQuarter([OrderDate]),
type logical
)OrderID | OrderDate | CurrentOrNextQ | |
|---|---|---|---|
| 1 | 42 | 3/8/2026 | TRUE |
| 2 | 43 | 4/10/2026 | TRUE |
| 3 | 46 | 7/1/2026 | FALSE |