Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have an excel file Weekly Finance ddmmmyy.xlxs in a folder (C:\Data). This excel file has a number of worksheets (A, B, C, Mapping, Dates-Actual...) that I need to import, transform and load into Power BI. I'm not looking to combine the worksheets from the onset; simply transform each sheet individually then apend as a new consolidated query and create When I've tried this as a file it works perfectly well but given that this is a file whose name will change based on the date, I can't be updating the steps in PQ for it to work.
Any suggestions or examples of a similar solution would be appreciated.
Thanks.
Solved! Go to Solution.
Hi @Tini-Bee ,
try to parameterize the file name and use references for multiple access.
https://docs.microsoft.com/en-us/power-query/power-query-query-parameters
https://powerpivotpro.com/2017/05/power-query-magic-part-1-always-good-references/
Hi @Tini-Bee,
I'd like to suggest you use DateTime.LocalNow function to extract current system DateTime and use these concatenate with your connection string. (it will dynamic changes when system data changes)
Connection= "C:\Data\Weekly Finance " & Date.ToText(Date.From(DateTime.LocalNow()),"ddMMMyy")&".xlxs"
Regards,
Xiaoxin Sheng
Hi @Tini-Bee,
I'd like to suggest you use DateTime.LocalNow function to extract current system DateTime and use these concatenate with your connection string. (it will dynamic changes when system data changes)
Connection= "C:\Data\Weekly Finance " & Date.ToText(Date.From(DateTime.LocalNow()),"ddMMMyy")&".xlxs"
Regards,
Xiaoxin Sheng
Hi @Tini-Bee ,
try to parameterize the file name and use references for multiple access.
https://docs.microsoft.com/en-us/power-query/power-query-query-parameters
https://powerpivotpro.com/2017/05/power-query-magic-part-1-always-good-references/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
79 | |
67 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |