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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors