Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

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
1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

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

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

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

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors