Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Remove duplicates and keep most recent date

Hello,

I have the following table in Power Query and i am trying to add step/s that would remove all duplicate Document ID's but keep only the corresponding most recent Modified Date. Is this possible? Any help is much appreciated!

 

Document IDModified Date
399814/09/2022
405004/08/2022
405001/08/2022
406010/07/2022
406022/07/2022
413920/07/2022
414515/07/2022
414505/07/2022
414505/07/2022
416015/07/2022
416006/07/2022
416425/09/2022
416425/09/2022
418715/07/2022
418723/10/2022
418708/09/2022
418705/08/2022

 

Expected results:

Document IDModified Date
399814/09/2022
405004/08/2022
406022/07/2022
413920/07/2022
414515/07/2022
416015/07/2022
416425/09/2022
418723/10/2022
  • In Power Query, this is a Group By on ID with an aggregation for Max of Modified Date (All done via the interface)

1 Reply

  • HotChilli's avatar
    HotChilli
    Community Champion

    In Power Query, this is a Group By on ID with an aggregation for Max of Modified Date (All done via the interface)