Hi All, I'm very very new to Power Query and just love the possibilities with this system. However, I still lack the knowledge to be able to solve my problem.
I have set up a query to grab and transform a workbook which contains hundreds of Parts List tables. I have successfully transformed the data and loaded it into a worksheet but my problem is the Equipment Description can be on multiple rows, yet I want them to be merged in 1 row.
The Equipment Description below is my original data. As you can see below; Row 3 " CAT c7 w/ EMC " needs to be merged/joined/concatenated with Row 2 " . ENGINE, DIESEL, 374 HP " to equal " . ENGINE, DIESEL, 374 HP CAT C7 w/ EMC "
The Concatenated Equipment Description column is what I am trying to achieve, regardless if the Equipment Description is 1 row or split over 2 rows or more...
[TABLE="border: 0, cellpadding: 0, cellspacing: 0"]
[TD="width: 226"]Equipment Description[/TD]
[TD="width: 356"]Concatenated Equipment Description[/TD]
[TD="width: 233"]# of dynamic rows to concatenate[/TD]
ENGINE ASSEMBLY
[/td]ENGINE ASSEMBLY
[/td]0
[/td]. ENGINE, DIESEL, 374 HP
[/td]. ENGINE, DIESEL, 374 HP CAT C7 w/ EMC
[/td]CAT C7 w/ EMC
[/td]2
[/td]. . ENGINE MOUNTING
[/td]. . ENGINE MOUNTING
[/td]. . ENGINE FRONT
[/td]. . ENGINE FRONT ACCESSORIES MOUNTING BRACKET
[/td]ACCESSORIES
[/td]3
[/td]MOUNTING BRACKET
[/td]. . ENGINE OIL DIPSTICK
[/td]. . ENGINE OIL DIPSTICK AND FILL TUBE
[/td]AND FILL TUBE
[/td]2
[/td]. . ENGINE OIL FILTER
[/td]. . ENGINE OIL FILTER
[/td]. . ENGINE OIL COOLER
[/td]. . ENGINE OIL COOLER
[/td]. . ENGINE CRANKCASE
[/td]. . ENGINE CRANKCASE BREATHER CAP
[/td]BREATHER CAP
[/td]2
[/td]. . TURBOCHARGER OIL
[/td]. . TURBOCHARGER OIL LINES
[/td]LINES
[/td]2
[/td]. . EXHAUST MANIFOLD
[/td]. . EXHAUST MANIFOLD
[/td]. . ENGINE AIR INLET
[/td]. . ENGINE AIR INLET PRE-HEATER
[/td]PRE-HEATER
[/td]2
[/td]. . VALVE COVER
[/td]. . VALVE COVER ASSEMBLY
[/td]ASSEMBLY
[/td]2
[/td]FLYWHEEL
[/td]FLYWHEEL
[/td]. FLEXPLATE AND
[/td]. FLEXPLATE AND FLYWHEEL
[/td]FLYWHEEL
[/td]2
[/td]. . FAN ASSEMBLY C/W
[/td]. . FAN ASSEMBLY C/W BELT
[/td]BELT
[/td]2
[/td]. . ALTERNATOR
[/td]. . ALTERNATOR ASSEMBLY C/W MOUNTING BRACKET
[/td]ASSEMBLY C/W
[/td]MOUNTING BRACKET
[/td]3
[/td]
[/TABLE]
I have tried multiple If Conditional Columns, I have tried merging columns, transposing columns, grouping (not very successfully) and have spent days and days searching the net to find a solution.
As I am a basic novice, maybe there is something I'm totally missing but wondered if any gurus here would know how it can be solved?
More than willing to attach any workbook examples if required?
Apologies to the moderators if I have failed to comply with any rules regards inserting tables etc.
Thank you
Paul