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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
dmiles9
New Member

Sum Distinct Rows Across Columns

Hello, community!

 

I've been trying to figure out how to create a column of "First 3 Scores" that sums multiple columns of distinct User Names rows in Power Query M. Does anyone know what steps I need to take in Power Query to get from the below current state table to the desired state table?

 

Current State:

User NameScore 1Score 2Score 3
Bill80  

Bill

 20 
Bill  40
Joe10  
Joe  50
Ashley20  
Ashley 60 

 

Desired State:

User NameFirst 3 Scores
Bill140
Joe60
Ashley80
1 REPLY 1
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.Group(PreviousStepName,"User Name",{"First 3 Scores",each List.Sum(List.FirstN(List.RemoveItems(List.Combine(Table.ToRows(_)),{null,""}),3))})

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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