STARTOFYEAR Function (DAX)
How does the STARTOFYEAR function (DAX) work?
The STARTOFYEAR function (DAX) returns the first date of the year in the current context for the specified column of dates.
STARTOFYEAR Formula Syntax
STARTOFYEAR(
<dates>
)
How do you use the STARTOFYEAR function?
This function filters <Dates> into a 1-row, 1-column table that shows only the earliest date, in the entire <Dates> column devoid of all filters, that is in the same year as the earliest visible date in <Dates>.
Related Blog Posts
Related Support Forum Posts
Contract Value where Contracts can span multiple years
Measures not calculating sum in matrix
Dax Calculation question
Considerations when using the STARTOFYEAR function
The dates argument can be any of the following:
- A reference to a date/time column.
- A table expression that returns a single column of date/time values.
- A Boolean expression that defines a single-column table of date/time values.
Related Video Tutorials
Formula examples using the STARTOFYEAR function
=STARTOFYEAR(DateTime[DateKey])
= STARTOFYEAR (Sales [Date])