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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Rgieltjes_Meyn
Helper III
Helper III

Remove duplicates in and keep the row with highest price

Hi,

 

I want to remove duplicates based on the first column, but keep the row with the highest price based on the last column. So in the image item 0000.9166 should keep the row with price 11.85

 

Rgieltjes_Meyn_0-1683551296914.png

 

Thanks

 

1 ACCEPTED SOLUTION
NishPatel
Resolver II
Resolver II

In Power Query Editor, do a group on item and create a new column with Max on Price. 

Below is the data

NishPatel_0-1683552173690.png

after applying below grouping

NishPatel_1-1683552201108.png

 

This is the required result

NishPatel_2-1683552219478.png

 

View solution in original post

1 REPLY 1
NishPatel
Resolver II
Resolver II

In Power Query Editor, do a group on item and create a new column with Max on Price. 

Below is the data

NishPatel_0-1683552173690.png

after applying below grouping

NishPatel_1-1683552201108.png

 

This is the required result

NishPatel_2-1683552219478.png

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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