Returns the last date in the given context.
LastDate_Calendar = FIRSTDATE(CalenderDate[Date])
LastDateNonBlank = CALCULATE(SUM(TransactionData[Revenue]), LASTNONBLANK(CalenderDate[Date],SUM(TransactionData[Revenue])))
Shows how LASTDATE works in different contexts. Useful when you want to calculate a Running Total or need to get the last date in a database automatically.