Date.IsInNextNQuarters

Date

Returns true if the date falls within the next N calendar quarters.

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

Syntax

Date.IsInNextNQuarters(dateTime as any, quarters as number) as logical

Parameters

NameTypeRequiredDescription
dateTimeanyYesA date, datetime, or datetimezone value to test.
quartersnumberYesThe number of quarters ahead to include. Must be a positive integer.

Return Value

logicaltrue if the date falls within the next N quarters after the current quarter, false otherwise.

Remarks

Date.IsInNextNQuarters returns true if the input date falls within the next N complete calendar quarters after the current quarter. The current quarter itself is not included; use Date.IsInCurrentQuarter to also match the current quarter. The function is re-evaluated on each query refresh.

For example, if today is in Q1 and quarters = 2, it matches any date in Q2 or Q3. Quarters are always standard calendar quarters (Q1: Jan–Mar, Q2: Apr–Jun, Q3: Jul–Sep, Q4: Oct–Dec) — there is no support for custom fiscal quarters.

Use this function in pipeline reports to see deals closing in the next one or two quarters, or in capacity planning to highlight deliverables due within the next few quarters.

Examples

Example 1: Find orders due in the next 2 quarters

Table.SelectRows(
    Sales,
    each Date.IsInNextNQuarters([OrderDate], 2)
)
Result
OrderID
CustomerName
OrderDate
143Alice4/10/2026
244Bob5/18/2026
345Charlie6/25/2026
446Diana8/1/2026

Example 2: Flag orders ending in the next 4 quarters

Table.AddColumn(
    Sales,
    "DueNextYear", each Date.IsInNextNQuarters([OrderDate], 4), type logical
)
Result
OrderID
OrderDate
DueNextYear
1423/8/2026FALSE
2434/10/2026TRUE
3502/28/2027FALSE

Example 3: Combine current and next quarter for a half-year view

Table.SelectRows(
    Sales,
    each Date.IsInCurrentQuarter([OrderDate]) or Date.IsInNextNQuarters([OrderDate], 2)
)
Result
OrderID
CustomerName
OrderDate
142Charlie3/8/2026
243Alice4/10/2026
344Bob5/18/2026
445Diana6/25/2026

Compatibility

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