Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
Solved! Go to Solution.
@Yaa_D Lose the .[Date] part of your formula and I would use MAX so:
maxFileDate = MAX('myTable'[FileDate])
Hi @Yaa_D
What is your column format, is it Date?
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Yup, it's Date
@Yaa_D Lose the .[Date] part of your formula and I would use MAX so:
maxFileDate = MAX('myTable'[FileDate])
Hello @Greg_Deckler , thank you for this tip . I also used it at a similar issue I had and it worked just fine . May I ask what is the implication of using the .[Date] at the end? Thank you, George Giannakis
Perfect. Thank you!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |