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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Trahan-Almighty
New Member

Remove duplicate rows and keep most recent year

Hi everyone,

 

When I try to remove remove duplicates row, the highest year is deleted, in this case 2025. I wish that the most recent year is always kept, and the other ones deleted. 

 

P.S: I already saw similar solved posts with this issue, but I still have trouble finding the right way to resolve this issue. 

 

Could you please help me?

 

Many thanks!

 

Current table

Vendor NumberYear
214007992023
214015402021
214012242022
214007992025
214001962022
9982021

 

Expected result: 

Vendor NumberYear
214015402021
214012242022
214007992025
214001962022
9982021

 

 

1 ACCEPTED SOLUTION
syasmin25
Helper V
Helper V

Consider using the query editor this way: I grouped the data by specific criteria.

syasmin25_1-1736449906276.png

 

 

View solution in original post

1 REPLY 1
syasmin25
Helper V
Helper V

Consider using the query editor this way: I grouped the data by specific criteria.

syasmin25_1-1736449906276.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.