Forum Discussion

Yaa_D's avatar
Yaa_D
Frequent Visitor
4 years ago
Solved

Max date in a column

Hi All, 
I have a date column called FileDate, and I'm trying to get the latest date in that column.


I've tries using MAX or LASTDATE in the following ways: 

maxFileDate = LASTDATE(('myTable'[FileDate].[Date])
maxFileDate = MAX('myTable'[FileDate].[Date])
maxFileDate = CALCULATE(MAX('myTable'[FileDate].[Date]), All())

All return 12/31/2021 although the last date in that column is Nov 9th

What am I missing here?
Thanks for the help!

 

 

  • Yaa_D Lose the .[Date] part of your formula and I would use MAX so:

    maxFileDate = MAX('myTable'[FileDate])