Forum Discussion
Tini-Bee
6 years agoFrequent Visitor
Excel.Workbook (Multiple Files and Multiple Worksheets)
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 loa...
- 6 years ago
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/
- Anonymous6 years ago
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
mwegener
6 years agoMost Valuable Professional
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/