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
craig811
Helper III
Helper III

Loading new file from folder using Power Query

Hi,

I can upload the lastest file in Power Query with no issue, however how can I get the quries to refesh using the data from the new file?

 

My Power Query curently loads the new file and create table queries on each table from that spreadsheet, however when I re-fresh the query the new file is loaded ok but my table queries are still linked to the old file. How can I get them to look at the new file intsead of manually going into each quary and updating the source?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @craig811 ,

According to your description, it seems like you are trying to mapping current data model tables to new datasource, right?

If they have different data structures from previous tables, I think you need to enter to 'query editor' and manually update query table connection strings and cached table structure. (power query will cache old data structure in query steps, it will return an error message for 'not match key fields' if new data structure does not match with cached)

If they have same data structure, you only need to update connection string to mapping to new datasoruce. (it stored in query step 'source' )

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @craig811 ,

According to your description, it seems like you are trying to mapping current data model tables to new datasource, right?

If they have different data structures from previous tables, I think you need to enter to 'query editor' and manually update query table connection strings and cached table structure. (power query will cache old data structure in query steps, it will return an error message for 'not match key fields' if new data structure does not match with cached)

If they have same data structure, you only need to update connection string to mapping to new datasoruce. (it stored in query step 'source' )

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi,
Not sure how your question relates to your headline/subject. 
Is the data source a file or a folder?
If it's file A and you want to change all your queries to file B click 'File' -> 'Options and settings' -> 'Data source settings'
choose the source you want to switch and click 'Change Source'.

pbi44.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.