Forum Discussion

Kees's avatar
Kees
Helper I
2 years ago
Solved

Power Query fetching data from file which changes weekly

Hi,   I'm struggling with the following.   I need to fetch data from a file that is updated weekly, if it would keep the same name it would not be an issue, but.... The file changes name weekly;...
  • mahenkj2's avatar
    mahenkj2
    2 years ago

    Hi Kees 

    I believe you can combine files from sharepoint location as well. Sort by created date and index it and keept the lowest index:

     

    How to combine files from sharepoint:

    https://www.youtube.com/watch?v=mYkNDdjbFvo

     

    Another approach we may think of is using a parameter storing file name and using in your query. everytime that parameter is updated, your main query will work dynamically. I can not test your code for this approach, becuase of dummysharepoint address, but I think above shared link might help you.

     

    Hope it helps.