LASTDATE DAX Function

The LASTDATE function returns the last date in the current context for the specified column of dates. It returns a table containing a single column and single row with a date value. Technically, the Return value is a table so this function can be used as an argument to any function that requires a table in its arguments. Also, the returned value can be used whenever a date value is required.

DAX Syntax LASTDATE(date)

The parameter date is a column containing dates.

Example: We have one table in Sheet1.

LASTDATE dax function

The following expression returns the last date in the current context.

DAX

Last date = LASTDATE('Sheet1'[MyDates])
LASTDATE dax function