STARTOFMONTH is a DAX function that returns the first date of the month for a given date.
Syntax
STARTOFMONTH( Dates )
Argument | Properties | Description |
---|---|---|
Dates | The name of a column containing dates or a one column table containing dates. |
STARTOFMONTH is a DAX function that returns the first date of the month for a given date.
STARTOFMONTH( Dates )
Argument | Properties | Description |
---|---|---|
Dates | The name of a column containing dates or a one column table containing dates. |
A table containing a single column and single row with a date value.
The dates
argument can be any of the following:
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.
The following sample formula creates a measure that returns the start of the month, for the current context.
= STARTOFMONTH(DateTime[DateKey])
Other functions related to STARTOFMONTH are:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy