Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Power BI aficionados
So we have a bunch of Power BI reports whose sources are yearly folders maintained on our corporate network. At the end every year, we need to repoint the folder to the present year in order for the report to render current year information. For example, I've had to manually change the source folder from 2019 to 2020 once we transitioned into 2020. Is there a way we can automate this? In other words, is it possible via power query for the source to automatically point to the current year folder without me having to do the manual step? Let me know if you'd like more details. Thanks in advance for your help.
Solved! Go to Solution.
Hi @Anonymous ,
This can be achieve by the use of parameters check the video below with a full explanation, you don't need to create an excel spreadsheet with the path information but you can use an alternate version by doing the following code in the source:
"C:\folder\folder" & Parameter_Name & "\Folder\Folder\"
Then you just need to choose the parameter to adjust your PBIX file.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
This can be achieve by the use of parameters check the video below with a full explanation, you don't need to create an excel spreadsheet with the path information but you can use an alternate version by doing the following code in the source:
"C:\folder\folder" & Parameter_Name & "\Folder\Folder\"
Then you just need to choose the parameter to adjust your PBIX file.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsProud to be a Super User!
Paul on Linkedin.
You can't do this directly....:) but here is a link to a RADCAD post that gives step by step instructions for doing it in M in the query editor.
https://radacad.com/fetch-files-andor-folders-with-filtering-and-masking-power-query
I'm a personal Power Bi Trainer I learn something every time I answer a question
The Golden Rules for Power BI
Help when you know. Ask when you don't!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.