Promote headers in nested tables before expanding columns | Power Query | Excel Off The Grid

preview_player
Показать описание
★ Want to automate Excel? Check out our training academy ★

★ Get the example file ★

★ Check out the dynamic column expand post ★

★ About this video ★
In Power Query, promoting headers of nested tables before expanding columns leads to fewer and easier transformations. However, these options are not available in the user interface. Therefore, we need to make a few changes to the M code ourselves.

This video shows two ways to promote headers before expanding the columns.

0:00 Introduction
0:25 Example & problem
2:30 Promote nested Table headers - Excel files
3:34 Promote nested Table headers - Other file types
6:50 Dynamic column expand method
7:19 Wrap-up

★ Download 30 most useful Excel VBA Macros ebook for FREE ★

★ Where to find Excel Off The Grid ★

#MsExcel
Рекомендации по теме
Комментарии
Автор

Nice one Mark- this caught me out a few weeks ago - I found out the hard way that the excel argument for promoting headers is not available for CSVs. Great solution 👌

martyc
Автор

Thank you Mark for this nice trick to promote headers especially in the PDF file which is new and didn't see before ...

mohammedelsakally
Автор

Thanks Mark, fantastic explanation as usual 👍

ExcelUnlocked
Автор

Used it today! Great timing :) Many thanks.

McIlravyInc
Автор

Hi Mark

Really useful.
Question: we have datamart extracts in flat xlsx format that come with information above the header row, same format but in multiple files (so need to exclude, say, first 4 rows *before* promoting). Every so often the report column order changes, so correctly labelling the columns before expanding data would be really handy ... 🙂
Any thoughts on adapting the process you describe?


Thanks, Chris (in Bristol)

chriswall
Автор

Is it possible to use power query to use a row that isnt the first row as the header - ie use row 7 as headers

CaylaCoover-MDH-
Автор

In a column I have 3 data types,
Payment, failed payment and refunds
I want to separate them into 2 columns
First one is payment less failed payment
And second one refunds?

nitishvats
welcome to shbcf.ru