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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Fox5
Frequent Visitor

Remove duplicate rows based on column value

Hi everyone

 

Once again, your help to solve my current problem is much appreciated 😊

 

My table looks somwhat like this:

Column AColumn B
P1005
P10020
P10125
P1021
P1038
P1049
P10437
P1048

 

 

I need to remove the rows that contain multiple values in column A based on values in column B. More specifically, of all the rows containing the same value in column A I need to keep the row that contains the highest value in column B. The result must be like this:

Column AColumn B
P10020
P10125
P1021
P1038
P10437
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Fox5,

I'd like to suggest you create a new calculated table with following formulas:

newTable =
SUMMARIZE ( Table1, [Column A], "MaxB", MAX ( Table1[Column B] ) )

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Fox5,

I'd like to suggest you create a new calculated table with following formulas:

newTable =
SUMMARIZE ( Table1, [Column A], "MaxB", MAX ( Table1[Column B] ) )

Regards,

Xiaoxin Sheng

Perfect. Thank you very much 😊

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.