legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,214
- Office Version
- 365
- Platform
- Windows
Hello PQ Gurus!
I need help in Power Query to dynamically remove unwanted row headers before I expand the 3 tables below and combine them (see below). The tables have the same columns once the unwanted rows above them are removed. I'm aware once this step is accomplished there will be duplicate headers from each of table somewhere below in each column, but I can easily filter them out in the next step. I'm guessing I need to add a custom column and somehow use some a function like Table.RemoveFirstN etc. To assist you, the unique first column header in each table should be "Company". So any data after the row "Company" is found in the first column the code should remove the rows above it for each table before I expand and combine the tables.
I need help in Power Query to dynamically remove unwanted row headers before I expand the 3 tables below and combine them (see below). The tables have the same columns once the unwanted rows above them are removed. I'm aware once this step is accomplished there will be duplicate headers from each of table somewhere below in each column, but I can easily filter them out in the next step. I'm guessing I need to add a custom column and somehow use some a function like Table.RemoveFirstN etc. To assist you, the unique first column header in each table should be "Company". So any data after the row "Company" is found in the first column the code should remove the rows above it for each table before I expand and combine the tables.
Data |
---|
Table1 |
Table2 |
Table3 |