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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
TFernandes_2022
Frequent Visitor

Highest score by person and category

 I have a database with several rankings by category,

This example table is a sample of the data, I need to remove the red lines from this table.

TFernandes_2022_0-1673303824261.png

In this table, only the highest score (Column E) of each Rider (Column B) in each category (Column C) will remain, no column can be removed

Is it possible to do this in Power Query?

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

=Table.FromRecords(Table.Group(PreviousStepName,{"Cavaleiro","Categoria"},{"n",each Table.Max(_,"Pts Dia1")})[n])

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

=Table.FromRecords(Table.Group(PreviousStepName,{"Cavaleiro","Categoria"},{"n",each Table.Max(_,"Pts Dia1")})[n])

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors