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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
voidbydefault
Frequent Visitor

[Not solved, giving up] Importing multiple files from a folder as separate tables in PQ?

Hello,

 

I have a bunch of files in a folder. Connecting PQ/BI to the folder imports all files (i.e. combines) them into one table. Is there are way that all those files import as different tables? 

 

Thanks.

2 REPLIES 2
voidbydefault
Frequent Visitor

Thanks @adudani. I have been tinkering around your suggestions, but unfortunately it seems there is no straight forward and feasiable way in PowerBI. I am exploring if Python could be leveraged to make the job 'somewhat' easier. 

adudani
Super User
Super User

hi @voidbydefault ,

1st approach : to my knowledge, before expanding the content of the files in the folder, the source name (file name ) could be expanded along with the data in the files.

 By duplicating the query and filtering the file name, you could get indiviual files loaded.

 

2nd approach :Alternatively, you could connect to a single file and change the source after duplicating the query.

 

Both are pretty manual so,  I wouldn't recomend it for a large number of files.

 

Abit more of a dynamic approach is creating parameters of the file source and applying a filter step using the first approach. replace the parameter in the filter step based on the file required.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors