DAX Function Guide

FIRSTDATE
Empty image or helper icon

Sam McKay

CEO & Founder

How does the FIRSTDATE 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?

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

Loading

Considerations when using the FIRSTDATE?

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

Loading

Formula examples using the FIRSTDATE

=FIRSTDATE(‘InternetSales_USD'[SaleDateKey])

= FIRSTDATE (Sales [Date])

=FIRSTDATE(Calc_Date_T[CRASH_DATE])

Related Courses

Loading