remove duplicate and keep the newest created

Sofino

New Member
Joined
Oct 26, 2022
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
Good morning all,
i have in data base SQL a table of products, with columns : Name of Product , Lot, Creation Date
in power bi, i need to remove duplicate products and keep only the last ones created (Creaion Date).

please can you help me?
thank you
 

Attachments

  • EXEMPLE DUPLICATE.png
    EXEMPLE DUPLICATE.png
    34.4 KB · Views: 30

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try using Table Design | Remove Duplicates command in your table. It gives you list of columns, that should be checked for duplicates. Leave only first column in this list and all duplicate values will be removed.
 
Upvote 0
Create a function based on a simple example.
Filter it on latest date.

Convert to a function.

Now group by product the whole table, using aggregate all rows. Invoke the function on that column.
Expand the table.

Done.
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,823
Members
452,672
Latest member
missbanana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top