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

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
Helper II
Helper 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
Helper II
Helper 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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors