Forum Discussion
Yaa_D
4 years agoFrequent Visitor
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])
5 Replies
- VahidDMSuper User
Hi Yaa_D
What is your column format, is it Date?
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/- Yaa_DFrequent Visitor
Yup, it's Date
- Greg_DecklerCommunity Champion
Yaa_D Lose the .[Date] part of your formula and I would use MAX so:
maxFileDate = MAX('myTable'[FileDate])