Power Query Merge rows with some duplicate data

clmish

New Member
Joined
Nov 11, 2008
Messages
15
How to merge rows in Power Query if some columns are duplicate.
Unfortunately I can't post an example, but the data I'm working with first needed the Pivot Columns function performed to move toward columnar data structure. The result is that I have multiple rows for the same metadata, with other columns containing values in one of the rows. There are about 70 columns involved!

I'm manually merging them with ASAP-Utilities, due to a time crunch (I'm not good/fast at VBA from scratch), but there can be thousands of otherwise duplicate rows that I need to combine to one record per transaction. I've seen "GroupKind", maybe, but am not expert enough in PQ/PP to know how to use it (if it's even the right tool).
Thanks All!

Roughly, the data looks like this:

StaticData1StaticData2VariableData1VariableData2VariableData3
Joe123OH
Joe123Toledo
Joe1232.50
Fred456MI
Fred456MI
Fred456Grand Rapids
Fred4561.25

And I need:
StaticData1StaticData2VariableData1VariableData2VariableData3
Joe123OHToledo2.50
Fred456MIGrand Rapids1.25
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
A Tableau buddy of mine said he would use GroupBy in that application. Is that what would make sense in merging these rows?
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top