FIRSTDATE Function (DAX)

How does the FIRSTDATE function (DAX) work?

The FIRSTDATE function (DAX) returns the first date in the current context for the specified column of dates.

FIRSTDATE Formula Syntax

FIRSTDATE(
     <dates>
)

How do you use the FIRSTDATE function?

The FIRSTDATE function can be used as a parameter to any DAX function that requires a table in its parameters. Further, the returned value can be used wherever a date value is required.

Related Blog Posts

Related Support Forum Posts

Return value associated with FIRSTDATE
Comparing New vs Lost vs Steady Customers over Multiple Years – Customer Churn Examples – Advanced DAX
Calculating Drawdown and MaxDrawdown

Considerations when using the FIRSTDATE 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.

When the current context is a single date, the date returned by the FIRSTDATE and LASTDATE functions will be equal.

Related Video Tutorials

Formula examples using the FIRSTDATE function

=FIRSTDATE(‘InternetSales_USD'[SaleDateKey])

= FIRSTDATE (Sales [Date])

=FIRSTDATE(Calc_Date_T[CRASH_DATE])

Related DAX Functions

LASTDATE

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.