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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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