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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
razickrahuman
New Member

Power Query Change Source File Without Re-Edit

Power query that loads daily data from a csv file. The format of the file is the same everyday, only the name changes. Is it possible to change the date source file name and have it loaded into the existing table without having to re-edit.

 

The import file is generated in this format - QuestionListsYYYYMMDDTTMMSS  

 

Appreciate your feedback. Thx in Advance

2 ACCEPTED SOLUTIONS
Akash_Varuna
Super User
Super User

Hi @razickrahuman , Yes, you can handle dynamic file names in Power Query could you please check these

  1. Use a Folder Query:

    • Place all daily files in a single folder.
    • In Power Query, use "Get Data > Folder" to load all files.
    • Filter the latest file by extracting the date from the file name or sorting by the Date Modified column.
  2. Parameterize File Name:

    • Replace the file name in the source step with a dynamic parameter.
    • Use a function or logic to pick the latest file automatically.
      If this post helped please do give a kudos and accept this as a solution 
      Thanks In Advance

View solution in original post

v-shamiliv
Community Support
Community Support

Hi @razickrahuman 
Thank you for reaching out microsoft fabric community forum.

I would also take a moment to thank @Akash_Varuna ,for actively participating in community forum and for the solutions you have been sharing in the community forum.

By using a folder as a data source or implementing parameters, you can efficiently manage daily updates to your Power Query without needing extensive re-editing of transformation steps. This approach not only saves time but also minimizes errors associated with manual updates.

If you need any further assistance or have any questions, please feel free to reach  us.

 

If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community.

 

View solution in original post

4 REPLIES 4
razickrahuman
New Member

Thx @Akash_Varuna . It works perfectly. 

v-shamiliv
Community Support
Community Support

Hi @razickrahuman 
Thank you for reaching out microsoft fabric community forum.

I would also take a moment to thank @Akash_Varuna ,for actively participating in community forum and for the solutions you have been sharing in the community forum.

By using a folder as a data source or implementing parameters, you can efficiently manage daily updates to your Power Query without needing extensive re-editing of transformation steps. This approach not only saves time but also minimizes errors associated with manual updates.

If you need any further assistance or have any questions, please feel free to reach  us.

 

If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community.

 

Thx @v-shamiliv. Works perfectly...

Akash_Varuna
Super User
Super User

Hi @razickrahuman , Yes, you can handle dynamic file names in Power Query could you please check these

  1. Use a Folder Query:

    • Place all daily files in a single folder.
    • In Power Query, use "Get Data > Folder" to load all files.
    • Filter the latest file by extracting the date from the file name or sorting by the Date Modified column.
  2. Parameterize File Name:

    • Replace the file name in the source step with a dynamic parameter.
    • Use a function or logic to pick the latest file automatically.
      If this post helped please do give a kudos and accept this as a solution 
      Thanks In Advance

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.