Edit

Share via


ENDOFWEEK

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.

Returns all primary tagged columns and all time related columns for last date of week, in the current context.

Note

Week functions only work with calendar based time intelligence.

Syntax

ENDOFWEEK(<calendar>)

Parameters

Term Definition
calendar A calendar reference

Return value

A table that contains all primary tagged columns and all time related columns for end of week, in the current context.

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 for calendar based time intelligence

The following sample formula returns tagged primary columns that corresponds to the end of the week, for the fiscal calendar.

= ENDOFWEEK(FiscalCalendar)

Date and time functions Time intelligence functions ENDOFYEAR function ENDOFQUARTER function ENDOFMONTH function