OpenBI Docs Buy

NEXTQUARTER

The dates of the quarter after the last date in the filter context.

Group: Time intelligence. Compatible with DAX.

Syntax

NEXTQUARTER ( <dates> )
ParameterTypeDescription
datesDatesA column of dates of the model, such as Sales[Month], or the name of a calendar defined in the model.

Returns

Table. The dates the column holds in the quarter after the last date in the filter context.

Remarks

  • The whole next quarter comes back, whichever month of the current one is selected.
  • Only dates the column holds come back: a date the move or the period lands on that the column lacks is left out, and when none is left the table is empty.
  • Given a column, it reads the dates visible in the current filter context; in a row context, such as ADDCOLUMNS, the row becomes a filter first, so each row sees its own dates.
  • Given a calendar instead of a column, it works on the calendar's own periods (fiscal years, retail months of four or five weeks, ISO weeks). A filter on a category the calendar does not define, such as a month on a calendar of weeks, can make the call an error.

Examples

Liters of the quarter before and after

March is the last month of the first quarter, so its next quarter starts in April; April's is July to September.

EVALUATE
ADDCOLUMNS (
    DATESBETWEEN ( Sales[Month], DATE ( 2025, 3, 1 ), DATE ( 2025, 5, 1 ) ),
    "Liters", [Liters sold],
    "Previous quarter", CALCULATE ( [Liters sold], PREVIOUSQUARTER ( Sales[Month] ) ),
    "Next quarter", CALCULATE ( [Liters sold], NEXTQUARTER ( Sales[Month] ) )
)
ORDER BY Sales[Month]
Sales[Month]LitersPrevious quarterNext quarter
2025-03-0143593140142153009
2025-04-0144318133059173446
2025-05-0149448133059173446

PREVIOUSQUARTER, NEXTMONTH, NEXTYEAR, PARALLELPERIOD.

Last updated · OpenBI Studio 0.3.74