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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
davidz106
Helper III
Helper III

Query from multiple folders

I have a following structure:

Folder 1

A.xlsx

A2.xlsx

B.xlsx

 

Folder 2

A.xlsx

A2.xlsx

B.xlsx

 

Folder 3 and so on...

 

I am only interested in A and A2. xlsx.

 

I have a query from folder that gets me filepaths. In next step I call a function that queries A.xlsx and A2.xlsx in Folder 1.

I have to create separate .pbix file for each folder this way. 

 

Is there a way to make PBI query A and A2 from all folders? 

 

Also, since query for A and A2 results in about 10-20k rows how efficent would it really be to run this for 50-70 folders? Could PBI Desktop even manage it? It works fine for one folder.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @davidz106 ,

 

Here's a video about process multiple folders in Power Query:

https://www.youtube.com/watch?v=K-xhxcg3eIY

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
jennratten
Super User
Super User

We can help you customize your script so that it works with your scenario if you will post what you've got working for one folder.

Anonymous
Not applicable

Hi @davidz106 ,

 

Here's a video about process multiple folders in Power Query:

https://www.youtube.com/watch?v=K-xhxcg3eIY

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jennratten
Super User
Super User

Power BI desktop can handle this in one pbix file.  Can you please add your scripts here and we can help you modify them for the expected result.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors