• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Power Query and Random Dates

OK, how do I using the Advanced Editor in Power Query, make it extract the last date entry in a field? I have about 5,000 ID numbers but have millions of dates. What I want to do is say "for each ID extract the last date they had activity".

This would be the line:

FilteredRows1 = Table.SelectRows(FilteredRows, each [checkDate] > #date(2012, 12, 31))

Thanks.
 
You can group by ID without expanding the tables and then sort the ids and add an index. Then treat the unexpanded row as a list of tables and use the code from the previous line to do the same thing. Good luck.
 
Back
Top