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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
M001
Helper I
Helper I

Get data from files in the same folder

Hi there,

 

I hope to get some help on my problem for importing files that reside in the same folder with my master file.

 

In my folder, there are 6 forecast files and 1 master file

 

Folder A:

- Forecast file for banana

- Forecast file for apple

- Forecast file for orange

- Forecast file for pineapple

- Forecast file for lychee

- Forecast file for pear

- Master file for all fruit

 

 

I will get data > folder to combine all data from the 6 forecast files into my master file but I keep getting error when I try to refresh my query in master file because the master file is one of the files reside in this folder so I cannot run the run the query without closing the master file, and I can not trigger the refresh without open the master file. I am stuck here and hopefully someone could kindly advise me, thank you very much!!

 

 

Regards,

M

1 REPLY 1
Anonymous
Not applicable

Hi M,

 

It sound like some circular reference problem.
But in the main query where all files are combined (so not any of the helper queries), can you insert a step right after the source step to filter the file names and exclude the master file?

Hope that works.

 

Regards,

Wouter

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.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.