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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tksnota
Post Patron
Post Patron

Extract Excel and PDF Files (Convert To Excel if Possible) for 100+ Individual Folders

Hi,


Is it possible to achieve the subject above via Powe Query or Power Bi or Excel?

 

If so, what's the best course of action?

 

//NT

4 REPLIES 4
Anonymous
Not applicable

Hi @tksnota 

 

You can use Power Query. Power Query is a data transformation and data preparation engine that is available in both Excel and Power BI. Power Query has the following connectors. 

Power Query Folder connector - Power Query | Microsoft Learn

Power Query Excel connector - Power Query | Microsoft Learn

Power Query PDF connector - Power Query | Microsoft Learn

 

Not sure if all of your Excel files and PDF files share the same table structure. If so, you can use the Folder connector to connect to a folder which has all the files, filter only Excel type files, then combine the files (Combine files overview - Power Query | Microsoft Learn). It will let you choose a file as Sample file, and it will detect the file type of the sample file then choose an appropriate function to extract the data. You can go to Transform Sample File query to do some transformations. These transformation steps will be applied to all files to be combined.

 

For PDF files, perform a similar operation like above but filter only PDF type files before combining files. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

PhilipTreacy
Super User
Super User

@tksnota 

 

Is it possible?  Yes.  How to do it?  Well, depends on a lot of things and you haven't provided any details.

 

Are the folders on a PC, Sharepoint, somewhere else?  Are the file contents structured the same - obviously the PDF and Excel files are different.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


 

Hi,

 

The files either excel or pdf are located in subfolders as shown but since I'm working on 100+ Job Nos. I need to open 100 Main Folders and then go to their respective subfolders which will be tedious if done manually.

 

All files are stored in sharepoint. 

 

 

tksnota_2-1721202472768.png

 

 

 

Anonymous
Not applicable

You may try Sharepoint Folder connector. Once connecting to a SharePoint site, you will see all files on that site. Then filter files by [Extension] column and [Folder Path] column to find the files that have the same file type and need to be combined. 

Power Query SharePoint folder connector

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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