Combine all Worksheets in a Workbook with Power Query

preview_player
Показать описание
Power Query has an awesome 'one-click transform' to combine all files in a folder. While it actually takes more than one-click, it does make it super easy to create a structure where you can clean up a single file, and have that template applied to each file before they are combined. Unfortunately there is no 'one-click' process to do this for all worksheets in a workbook - but you CAN build it yourself. In this video, Ken shows you exactly what you need to do.

Content timestamps:
0:00:00 - 0:00:45 Introduction
0:00:45 - 0:01:02 Background, Source Data and Goals
0:01:02 - 0:02:25 What NOT to do when combining worksheets
0:02:25 - 0:04:02 Connecting to the External Workbook
0:04:02 - 0:05:00 Creating the SheetName Parameter
0:05:00 - 0:08:07 Creating the Sample Sheet Transform
0:08:07 - 0:09:20 Creating the Transform Sheet Function
0:09:20 - 0:10:50 Invoking the Transform Sheet Function
0:10:50 - 0:13:24 Leveraging the benefits
Рекомендации по теме
Комментарии
Автор

Awesome Ken! Thanks for walking through the steps. Well explained. Easy to follow. Thumbs up!!

wayneedmondson
Автор

Hi Ken, Thanks you for this very useful transformation. More than that I appreciate the content time stamps and the calm smooth delivery. Thanks again Andrew

andrewsinha
Автор

Very useful video. If I may suggest, try replacing the hard-coded columns in the Expanded Transform Sheet step with the Table.ColumnNames(#"Sample Sheet Transform"). This is how it works with the one-click transform PQ solution that combines all files from a folder.

zoranmilokanovic
Автор

Hi Ken, great solution. Will that work in cases where some of the sheet may have more columns or less columns? Or if the name of these columns in one sheet may be a little bit different to the other sheets?

westleyempeigne