Hi. I need some power query help. I’m importing data from a 100 page PDF file. Power query views the PDF as 100 different tables each with four columns. I want to append all of these tables into one. The problem is, before I append the tables together, I want to stack the columns in each table, so that for each table, columns c & d are stacked onto columns a & b. Help how do I do this?

like
Posting as :
works at
You are currently posting as works at

Actually you can do that with Co-pilot (built into Excel). Otherwise, you can create a new table from columns c & d with the same column headers as a & b and then append in Power Query.

like

Continuing...Step 3) Get From File..
Step 4) then Chose From Folder
Step5) Navigate to correct folder
Step6) Open folder, PQ brings pdfs into initial Data model
Step7) Chose option to combine tables and load
Step8) PQ will run then you chose new Worksheet at dialog (can chose pivot or other view type)
Step9) Datamodel loads into new worksheet with default headers created (you can left click and change header names)
Step10) PQ also creates an extra first column in model -- Delete that first extra column.
*** All tables should have auto appended to the first pdf table in your table list

There are no column names in the pdf. PQ brings them in as Columns 1-4. So, I should rename the columns in all 100 tables before I append them? I’m looking for a faster way.

like

NO. Rename headers after PQ auto-creates the final data model, appending all 99 tables to the first one,vertically. THe default header names are created AFTER the "combine (append) takes place. The tables are added below the first table converted into EXCEL format by PQ.

Seems like an easy AI problem. Doesn’t EY have some tools by now?

@SM1, sometimes no response is the best response. This is intended to be a supportive Bowl. If you don’t have any value to add, keep quiet.

like

if c & d columns have the names as a & b then power query will do that on its own, otherwise you might want to rename the columns before the append, and for safe keeping you might want to try a "try otherwise" statement

Are the column names consistent or do they need to be renamed? And if so, can they be assigned column names using some logic?

Can you load as sheets? Then theyll automatically named. Otherwise, maybe a function to add a column name before appending.

Can you provide a screenshot of your query

If that 100 page pdf has a static name then you could chose to have a "Connection" instead of doing a "Load and close" action. That open connection will enable your final Table to auto update when a new 100pg (more or less) pdf file of the same name is put in the folder, overwriting the previous one

Related Posts

Hello

I've been interviewed by @Amazon on 8th July and even after multiple follow up emails, there's no update. Any suggestions?

like

In terms of taking the next step to elevate your career- what items are you heavily focusing on? I have speciality in data governance as well as product counseling, but curious to know what others find most helpful in their practice areas.

likehelpful

So abhi diwali gift bangaya ltimindtree gift.
Seems We get advantage club link to select gift of our choice. Same link provided for welcome gift also. Probably one more bottle and cup coming up

like

Hi Fishes, need your help.
Can anyone tell me the exact role for Quality analysis in Accenture. Thanks in advance.

like

Should people be fired for lack of people skills?

like
like

Hello Fishes,
I cleared the Level 2 interview as an Appian developer. Could you please let me know what Level 3 interview would be about? Thr HR said it's an interaction session with the panel. But should I be prepared technically?

Hi Fishes,

Does
Hexaware Technologies have fixed Time in/ Time out policy in office or are they allowing wfh? Hexaware Technologies

like
like

Has anyone ever successful negotiated there salary with the federal government. I have tried twice and both times was cited a HR policy saying my specific circumstance did not allow negotiation. Just wondering if it’s even possible

like

Going from 165 as an ACD to 210 as a CD? Is that about right?

like

Hi, currently i am working with icici bank in backend operations in CIB team as Deputy manager but i am looking for an opportunity in Accenture can anyone help with the openings or referral??

What are some tips or recommendations on where to start to become a product manager? Much appreciated

like
like

Hello! I’m going to BSchool in August. Any recommendations on books / websites / videos to be more prepared for management consulting interviews?

Thoughts on Roland Berger Middle East?

like

Ah. A 655 minute wait. No problem. ✈️

Post Photo
funnylikeupliftinghelpful

Big 4 Consulting interviews: do most people fail out of interviews at the behavioral interview part or the case interview part? Does anyone know statistics of job offers given once you make the casing portion of a Big 4 interview?

like

Additional Posts in Excel Genius

This is dumb, but. How can I pull and average the numbers in column b associated with the 4 values in column a? So, (sum of all As/total number of As) without filtering?

Post Photo
like

Does anyone know what purple tables mean in Excel?

I know about green and orange, but never saw purple before and trying to figure it out.

likefunny

How do I set the formula to calculate “If x falls between 1-10, return 1-10, if it falls between 11-20, return 11-20, and so on”

like

Excel Rookie looking for a super simple formula to bring all information linked to a certain date in tab 1 to be organized under said date in tab 2.

like

What’s the best way to summarize multiple amortization schedule. I have each schedule on a separate tab. On a master sheet can I do something where I can input a specific month and show my ST/LT ...

like

Client sent over a 90 MB model this evening. Took 10 minutes to open and a fraction of that to crash. Can’t wait for tomorrow 😭

like

Will need to migrate to office 365 soon. What’s the difference for excel from the 2013 version?

likehelpful

How can I copy a formula from one sheet to another?i tried the simple Ctrl+C, Ctrl-V, but the formula refers to the old sheet.

like

Struggling with this:
Suppose I want to shortlist companies that serve the priority industry vertical of a country. So I have the industries served by company (one column for each industry) and (cont)

What are your top excel functions you use in finance / accounting - besides vlookup - Pivots - sumifs - count - index. I have an interview coming up which will have excel based technical questions. Not sure what other functions are considered important in the accounting finance world.

like

Is there any easy way to handle FedEx/ups tracking numbers? I’d like to have some formula that would just show the status in another cell.

like

Can dates be grouped just by Month-Year in pivot tables on a Mac without having the year as its own dimension?

Post Photo
like

Everyone: Excel is a smart app
Excel:

Post Photo
likefunny

How can I add multiple characteristics within one cell and make sure that a pivot table can read both values independently if needed? E.g., I have a column titled “color” and in one cell I write “red” and the other “red, blue”. I’d like a pivot table / formula to be able to count that there are technically two “reds” in this data set. Any tips?

like

Does anyone know any shortcuts for the “Refresh All” button without having to always click Data->Refresh All every time I want to refresh the live data? For a Mac btw pls thanks!

Post Photo
like

Need help building an electric schedule for a production schedule with a Gantt chart style view (sort of)

Currently have an excel list with resource (production line), start date and time, and then also the name of the item being produced.

Any ideas how to tackle this??

I’m thinking a stacked bar chart with the vertical categories to be my resources and horizontal the date/time and then each individual bar to be the name of the item being produced.

Thank you for the help Excel Gods 🙏

like

HELP!
I have raw sales data on one tab, which includes a sales rep ID number. My second tab has that sales rep ID number in column 1 and the rep name in column 2. How can I get the rep name added to the correct line items in the raw data?

Is there an easy way to switch XLOOKUPS to INDEX MATCH? Have a large file with bunch of formulas that don't work on all client machines (different excel versions).

like

Is there a way to identify duplicate URLs within labeled hyperlinks on multiple columns/rows/cells?

I was thinking conditional format, but it’s identifying duplicate labels. I have over 80,000 cells, so extracting URLs manually isn’t going to work for me.

Thanks in Advance!

Hey guys, I'm trying to find a formula to use instead of the Goal Seek function. Anyone know it? I thought I had seen one years ago, but can't find it now.

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal