Edit

Share via


NEXTWEEK

Applies to: Calculated column Calculated table Measure Visual calculation

Note

This function is discouraged for use in visual calculations as it likely returns meaningless results.

Note

Week functions only work with calendar based time intelligence.

Returns a table of all dates from the next week, based on the last date in the current context. The table contains all primary tagged columns and all time related columns.

Syntax

NEXTWEEK(<calendar>)

Parameters

Term Definition
calendar A calendar reference

Return value

A table contains all primary tagged columns and all time related columns.

Remarks

  • Constraints on Boolean expressions are described in the topic, CALCULATE function.

  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

Example

The following sample formula creates a measure that calculates the 'next week sales' for Internet sales.

=
CALCULATE (
    SUM ( InternetSales_USD[SalesAmount_USD] ),
    NEXTWEEK ( FiscalCalendar )
)

Time intelligence functions Date and time functions NEXTDAY function NEXTMONTH function NEXTQUARTER function NEXTYEAR function