cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EtienneOL Member
Member

Remove duplicates - keeping the most recent row

Hi,

 

I need to remove duplicates rows but to do it selectively, by keeping the most recent value based on another column. In fact, my problem is exactly this one : https://community.powerbi.com/t5/Desktop/Selectively-remove-duplicate-rows/m-p/334489#M149648 but the solution does not works for me, I can sort rows the way I want it keeps filtering the same rows. Anyone has an idea how to select which duplicates i want to keep ? 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Remove duplicates - keeping the most recent row

Not sure if you've read through the whole post, but it is important to buffer the table before removing duplicates (Table.Buffer). Otherwise the sort order might not be kept.

Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Imke Feldmann

How to integrate M-code into your solution -- Check out more PBI- learning resources here -- Performance Tipps for M-queries




View solution in original post

2 REPLIES 2
Super User
Super User

Re: Remove duplicates - keeping the most recent row

Not sure if you've read through the whole post, but it is important to buffer the table before removing duplicates (Table.Buffer). Otherwise the sort order might not be kept.

Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Imke Feldmann

How to integrate M-code into your solution -- Check out more PBI- learning resources here -- Performance Tipps for M-queries




View solution in original post

Highlighted
EtienneOL Member
Member

Re: Remove duplicates - keeping the most recent row

Indeed i only readd the solution Smiley Wink Thanks ! 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 6 members 1,091 guests
Please welcome our newest community members: