1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Multiple Row Headers into PQ?

Our take

Merging multiple PDFs with dynamic row headers in Power Query can streamline your weekly data management. When dealing with varying column headers, such as different dates in each document, it's essential to identify the row where the new headers begin. By setting up a query that dynamically recognizes these headers, you can consolidate your data effortlessly. This approach allows for automatic updates to your pivot tables, ensuring your analysis remains current with minimal manual intervention. Let's explore how to achieve this effectively in Power Query.

I have a collection of PDFs I get weekly and I’d like to merge them together into one big query. However, the problem I run into is that dates are used as column headers. So if I batch load a folder of these documents, I see that row 27 for example might be the start of the new column headers. The data would look like this:

Product 4/1 4/2 4/3 4/4 4/5

Apples 1 0 3 2 1

Oranges 1 5 3 2 7

It just changes those dates at the top when a new weekly PDF is cooked up. How do I solve for that in PQ? I’d like to be able to merge them together from a folder and update my pivot tables weekly based on what files are in the folder.

submitted by /u/KyleTheTallOne
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with