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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ovetteabejuela
Impactful Individual
Impactful Individual

Power Query | How to remove (older) duplicate records

Hi once again,

 

How do you recommend to remove an older version of a record. I plan to use the file created date as the time stamp to tell which record is newer.

 

Here's a dummy data:

 

ColorShapeMaterialStored
RedCircleWood7/2/2017
RedCircleMetal7/2/2017
RedCircleWood7/1/2017
YellowCircleWood7/4/2017

 

So the plan is to remove record #3 because it is an older version of record #1, the "Store" column should tell when it was stored.

1 ACCEPTED SOLUTION

In power query (get data) sort by the date column descending. Then select all columns except date and select remove rows\remove duplicates. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

2 REPLIES 2

In power query (get data) sort by the date column descending. Then select all columns except date and select remove rows\remove duplicates. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

I see, so it does have that behavior. thanks @MattAllington

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.