Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to automatically refresh when file name is slightly different each time (timestamp at the end)

HelloI have a requirement to load csv files from an internal tool into PowerBI. The challenge is that the generated filenames have a date/timestamp as the suffix. For eg, todays Employee file will be...
  • fhill's avatar
    6 years ago

     

    Import a FOLDER and 'Combine & Edit' to get to Power Query.  On the 'Source' Step you should have a list of files in the Folder.  While 'Source' is selected in Applied Steps, Add a Filter to the 'Name' column:

     

    We are going to 'Filter' the File Names while on the 'Source' Step, to add a NEW Step removing the files we don't want...

     

     

    Now a new 'Filtered Rows' step has appeared, and all following steps will not see the bad files.