Forum Discussion
StoryofData
1 year agoHelper III
SharePoint: Read all Files and All Tabs except certain tabs
Hi there, I am trying to read all files in a sharepoint folder and all tabs within those .xlsx files, except tabs that contain "Summary". All file names are different and all tab names are diffe...
- 1 year ago
Something like this
// Downloads let Source = Folder.Files("C:\Users\xxx\Downloads"), #"Filtered Rows1" = Table.SelectRows(Source, each Text.StartsWith([Name], "Book") and [Extension] = ".xlsx"), #"Added Custom" = Table.AddColumn(#"Filtered Rows1", "Custom", each Excel.Workbook([Content])), #"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Name","Custom" }), #"Expanded Custom" = Table.ExpandTableColumn(#"Removed Other Columns", "Custom", {"Data", "Kind", "Name"}, {"Data", "Kind", "Name.1"}), #"Filtered Rows" = Table.SelectRows(#"Expanded Custom", each [Name.1] <> "Summary") in #"Filtered Rows"
lbendlin
1 year agoSuper User
Something like this
// Downloads
let
Source = Folder.Files("C:\Users\xxx\Downloads"),
#"Filtered Rows1" = Table.SelectRows(Source, each Text.StartsWith([Name], "Book") and [Extension] = ".xlsx"),
#"Added Custom" = Table.AddColumn(#"Filtered Rows1", "Custom", each Excel.Workbook([Content])),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Name","Custom" }),
#"Expanded Custom" = Table.ExpandTableColumn(#"Removed Other Columns", "Custom", {"Data", "Kind", "Name"}, {"Data", "Kind", "Name.1"}),
#"Filtered Rows" = Table.SelectRows(#"Expanded Custom", each [Name.1] <> "Summary")
in
#"Filtered Rows"
StoryofData
1 year agoHelper III
Never mind, I fugred it out! Thank you so much! 🙂