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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.