Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 a table for the first date of week in the current context, based on the calendar. The table contains all primary tagged columns and all time related columns.
Note
Week functions only work with calendar based time intelligence.
Syntax
STARTOFWEEK(<calendar>)
Parameters
| Term | Definition |
|---|---|
calendar |
A calendar reference |
Return value
A table that contains all primary tagged columns and all time related columns.
Remarks
Constraints on Boolean expressions are described in the topic, CALCULATE.
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 primary tagged columns for the first date of the week, for the fiscal calendar.
= STARTOFWEEK(FiscalCalendar)
Related content
Date and time functions Time intelligence functions STARTOFYEAR STARTOFQUARTER STARTOFMONTH