Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
andersthyme
New Member

Table based on header from multiple PDFs in a folder

Dear all,

 

I am new to this forum, and therefore apologize in advance if I am missing anything, but I really hope you can assist.

 

I have a folder with PDF files all containing multiple tables. For each file there is a table with header "event assessment". It will not be the same table number each time, why I need to to look for the header instead of just "TABLE009" etc.

 

Also each file-name contains the item number. 

 

What I need is for my PowerBI to read all the PDFs, open the table for each of these with header "event assessment" and add a column with the file name (i.e. item number).

 

Is this possible?

 

Thanks in advance!

 

Kr Anders

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @andersthyme - I am going to say maybe, but it is very difficult to trouble-shoot in this forum. 

To understand the problem, you need to import the PDF files manually to understand the difference between each PDF from in the Advanced Editor screen.  Eventually, if you are lucky, a pattern will appear.  This pattern can be turned into a Power Query function.  The function will open the PDF file, then try to do the conversion.  If the first approach (e.g. find table named "X") fails, it tries the second (e.g. find table with field name "abc"), and so on until if reports the PDF as an error.

View solution in original post

3 REPLIES 3
andersthyme
New Member

Thanks Daryl and KNP. I'll give the approach you describe a go (i.e. import one by one and examine the advanced editor screen); it will be quite difficult to recreate these PDF's which at the moment are confidential/contains sensitive data. Thanks for taking your time to assist!

KNP
Super User
Super User

If possible, please provide a link to one of the PDF's, if data is sensitive then you could recreate a sample PDF or two for us to work with. As @Anonymous said, it is difficult to solve this without something to work with.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!
Anonymous
Not applicable

Hi @andersthyme - I am going to say maybe, but it is very difficult to trouble-shoot in this forum. 

To understand the problem, you need to import the PDF files manually to understand the difference between each PDF from in the Advanced Editor screen.  Eventually, if you are lucky, a pattern will appear.  This pattern can be turned into a Power Query function.  The function will open the PDF file, then try to do the conversion.  If the first approach (e.g. find table named "X") fails, it tries the second (e.g. find table with field name "abc"), and so on until if reports the PDF as an error.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.