ENDOFYEAR Function (DAX)

How does the ENDOFYEAR function (DAX) work?

The ENDOFYEAR function (DAX) returns the last date of the year in the current context for the specified column of dates.

ENDOFYEAR Formula Syntax

ENDOFYEAR(
     <dates> [,<year_end_date>]
)

How do you use the ENDOFYEAR function?

The ENDOFYEAR function is used to filter <Dates> into a 1-row, 1-column table that shows only the latest date, in the entire <Dates> column devoid of all filters, that is in the same year as the latest visible date in <Dates>.

Related Blog Posts

Related Support Forum Posts

Information – OPENINGBALANCEMONTH, STARTOFMONTH, ENDOFYEAR
Business Day Calculation
Dynamic Date Table using M

Considerations when using the ENDOFYEAR 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 ENDOFYEAR function

=ENDOFYEAR(DateTime[DateKey],”06/30/2004″)

= ENDOFYEAR (Sales [Date])

ENDOFYEAR ( ‘Date'[date] )

Related DAX Functions

Related Course Modules

Ultimate-Beginners-Guide-To-PowerBI

DOWNLOAD

To access our comprehensive DAX formula reference guide just insert your email address below. The resource will download immediately and we’ll also email it to you.