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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors