Forum Discussion
Kees
2 years agoHelper I
Select datafile that changes monthly
Hi, Although I found some some suggestion for my problem I could not find one that suits my need. I have a XLSX datafile that I need in my PBI queries that changes monthly (Always in the same...
- 2 years ago
let Source = SharePoint.Contents("https://fakename.sharepoint.com/sites/fakefolder/", [ApiVersion = 15]), #"Shared Documents" = Source{[Name="Shared Documents"]}[Content], #"Filtered Rows" = Table.SelectRows(#"Shared Documents", each Text.StartsWith([Name], "Billing Cumulative")) #"Imported Excel Workbook" = Excel.Workbook(#"Filtered Rows"{0}[Content]),I'm looking for a way to select the datafile starting with: Billing Cumulative_Raw Data.Your files don't start with that. You have the region name in between.
lbendlin
2 years agoSuper User
let
Source = SharePoint.Contents("https://fakename.sharepoint.com/sites/fakefolder/", [ApiVersion = 15]),
#"Shared Documents" = Source{[Name="Shared Documents"]}[Content],
#"Filtered Rows" = Table.SelectRows(#"Shared Documents", each Text.StartsWith([Name], "Billing Cumulative"))
#"Imported Excel Workbook" = Excel.Workbook(#"Filtered Rows"{0}[Content]),
I'm looking for a way to select the datafile starting with: Billing Cumulative_Raw Data.
Your files don't start with that. You have the region name in between.
Kees
2 years agoHelper I
Got it working!
Thanks very much, making my day!
Brgds Kees