Combine all Worksheets in a Workbook with Power Query

  Рет қаралды 4,650

Skillwave Training

Skillwave Training

Күн бұрын

Пікірлер: 8
@wayneedmondson1065
@wayneedmondson1065 2 жыл бұрын
Awesome Ken! Thanks for walking through the steps. Well explained. Easy to follow. Thumbs up!!
@andrewsinha2785
@andrewsinha2785 2 жыл бұрын
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
@skillwavetraining
@skillwavetraining 2 жыл бұрын
Glad it was helpful!
@zoranmilokanovic6229
@zoranmilokanovic6229 2 ай бұрын
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.
@skillwavetraining
@skillwavetraining 2 ай бұрын
True enough although... while that will dynamically pull the headers from the first nested table, it won't get additional columns that appear (only) in subsequent columns. I'm not saying it isn't a good practice, you're correct that I should have done this, but I think that - if I'm concerned about dynamic column names - I'd go the extra mile and build something to look at expanding all columns from each table. ;)
@zoranmilokanovic6229
@zoranmilokanovic6229 2 ай бұрын
I was guided by the functionality of From File/Folder, which comes out-of-the-box. There, the header is taken dynamically from the Transform Sample File-hence the suggestion. Especially since, in your example, all the sheets have the same header. I completely agree with you that if this weren't the case, a more robust solution would be necessary. In the Output query, the existing step for expanding would be replaced with the following two steps Header = List.Union(List.Transform(#"Removed Other Columns"[Transform Sheet], Table.ColumnNames)), #"Expanded Transform Sheet" = Table.ExpandTableColumn(#"Removed Other Columns", "Transform Sheet", Header),
@westleyempeigne6541
@westleyempeigne6541 Жыл бұрын
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?
@KenPulsXLGuru
@KenPulsXLGuru Жыл бұрын
Hi Westley, as always, it depends. If there are more/less columns, providing we don't do anything that specifically refers to a column name in the code that may not be there in future, we should be fine. With regards to the comment about "different", it really depends on "how different". If it is similar, but needs a slightly different treatment, you may be able to code that into your function. If it is totally different (say sales data vs production data which has a TOTALLY different makeup), then you'll need to create a second function and filter the files list allowing you to call the correct function for the correct files.
13 - Combine All the Excel Files in a folder Using Power Query
10:31
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 41 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 22 МЛН
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 22 МЛН
Poor Man's Paginated Report in Power BI
11:17
Skillwave Training
Рет қаралды 1,1 М.
Power Query Unpivot - fix 4 common data layouts (incl. workbook)
19:24
MyOnlineTrainingHub
Рет қаралды 231 М.
Combining Multiple Sheets in Multiple Workbooks
11:53
Agile Insights
Рет қаралды 6 М.
Combine Files with DIFFERENT Headers in Power Query | TWO Examples
11:47
Combine Files from a Folder with Power Query the RIGHT WAY!
10:18
MyOnlineTrainingHub
Рет қаралды 173 М.
Using Monkey Tools - Import a Power BI pbix File Into Excel!
10:40
Skillwave Training
Рет қаралды 248
Combine Multiple Worksheets into One with Append Query - Excel
11:11
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 41 МЛН