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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors