ENDOFQUARTER Function (DAX)

How does the ENDOFQUARTER function (DAX) work?

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

ENDOFQUARTER Formula Syntax

ENDOFQUARTER(
     <dates>
)

How do you use the ENDOFQUARTER function?

The ENDOFQUARTER 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 and quarter as the latest visible date in <Dates>.

Related Blog Posts

Related Support Forum Posts

Custom quarter ending on 3rd Friday of quarter’s last month
Comparing New vs Lost vs Steady Customers over Multiple Years – Customer Churn Examples – Advanced DAX
Learning summit August 2018 – Attrition Analytics Question

Considerations when using the ENDOFQUARTER function

  • A reference to a date/time column. Only in this case a context transition applies because the column reference is replaced by CALCULATETABLE ( DISTINCT ( <Dates> ) )
  • 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 (when used in a CALCULATE filter argument).

Related Video Tutorials

Formula examples using the ENDOFQUARTER function

=ENDOFQUARTER(DateTime[DateKey])

ENDOFQUARTER ( ‘Date'[date] )

= ENDOFQUARTER (Sales [Date])

Related DAX Functions

Related Course Modules

Ultimate-Beginners-Guide-To-PowerBI
Center of Excellence

DOWNLOAD


Download our comprehensive DAX Formula Reference Guide as perfect companion as you learn how to use DAX formulas within Power BI.


Download DAX Formulas Reference Guide
Download DAX Formula Reference Guide
Membership