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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lancea
Helper I
Helper I

Automatically change Excel Data Source monthly

I have created a Power BI report that has a dashboard for monthly data. Data comes from an Excel file uploaded in SharePoint, named "Monthly Report - May 2021".

 

Every month, a new file is uploaded with a different filename based on the month (e.g. "Monthly Report - June 2021"). It has the same template, worksheet names, headers, etc., but it contains data only for the specific month.

 

Is it possible to automatically change the referenced file data source every month in Power BI? Or do I need to use one file only and update that file with new monthly data?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lancea , You can try the folder approach?

https://insightsoftware.com/blog/power-bi-load-data-from-folder/

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

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @lancea ,

 

Based on your description, have you tried to create a parameter and then use it in the Advanced editor?

Please refer to the following threads.

Solved: Dynamically change data source of published report - Microsoft Power BI Community

Solved: Dynamically change data source - Microsoft Power BI Community

Power BI – Using Parameters for Flat File / CSV / Excel Sources - Reporting/Analytics Made easy with...

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

 

amitchandak
Super User
Super User

@lancea , You can try the folder approach?

https://insightsoftware.com/blog/power-bi-load-data-from-folder/

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

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

The second link worked fine, thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.