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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Data source refresh

Dear,

 

I have a  query starting with 

 

let
Source = Folder.Files("C:\.........\Folder"),

 

And I weekly add a file in this folder. However, when I do data refresh, the first step is not refreshed. This is an example:

 

In week 34 I create the report and have in the folder files for W33 and W34. In week 35 I add the file W35 in the folder and I refresh the query. However the list of files to source from "C:\.........\Folder" does not change and I keep refreshing only the old files data. 

 

A workaround is for me to change folder once, load the list of what is there and than change back to the right folder. This produces the updated list of files including w35. 

 

Any more straight forward ways?

 

THanks,

BR,

Pietro

 

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Basically if you add new files into the folder, just click the refresh button directly in power query editor and the folder should load all the latest files.

 refresh.png

 

Best Regards,
Yingjie Li

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

Greg_Deckler
Community Champion
Community Champion

@Anonymous Something is not right, you should not have to do that, what version of the Desktop are you on? Did you use a Folder query when you created your query? Can you paste the rest of your Advanced Editor code?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Anonymous , not very clear. See if this can help

https://medium.com/@wkrzywiec/getting-data-from-the-latest-file-in-a-folder-using-power-query-51dfa4bff711

 

 

https://powerbi.microsoft.com/en-us/blog/combining-excel-files-hosted-on-a-sharepoint-folder/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.