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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JoaoPereira
Frequent Visitor

Power Query - Uniting rows based on column values.

Hello Power BI community. I hope you are all doing fine.

 

I am here today to ask for help regarding the possibility of uniting rows based on a column value. Below is an example table for this purpose:

 

NameAgeX-ValueY-Value
John2030null
John20null15
Mary3050null
Mary30null35
Eric4040null
Eric40null25

 

In this example table, I have two rows for each person, with identical names and ages. They are the same person, just written twice due to server errors. I would like to be able to join the x-values and y-values based on whether the names are identical. This assumes of course no two people have the same name, which they won't have. Here is what my final table should look like:

 

NameAgeX-ValueY-Value
John203015
Mary305035
Eric404025

 

The base table is automatically exported from a server and will always come in this exact same format - Name, Age, X-Value, Y-Value. Please let me know if there are any steps in Power Query where I am able to automatically join x-value and y-value rows as long as the names are the same.

 

Best,
Joao

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @JoaoPereira 

 

Based on your sample, you can do Group By

 

Vera_33_0-1629809074070.png

 

View solution in original post

1 REPLY 1
Vera_33
Resident Rockstar
Resident Rockstar

Hi @JoaoPereira 

 

Based on your sample, you can do Group By

 

Vera_33_0-1629809074070.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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