diff --git a/Files.SheetsInFolder.pq b/Files.SheetsInFolder.pq index ce971fd..b7fc7a3 100644 --- a/Files.SheetsInFolder.pq +++ b/Files.SheetsInFolder.pq @@ -13,7 +13,8 @@ let RemovedOtherColumns = Table.SelectColumns(FilteredRows,{"Content", "Name"}), NoTemps = Table.SelectRows(RemovedOtherColumns, each not Text.StartsWith([Name], "~$")), InsertedCustom = Table.AddColumn(NoTemps, "Sheets", each Excel.Workbook([Content])), - Expanded = Table.ExpandTableColumn(InsertedCustom, "Sheets", {"Data", "Name"}, {"D","N"}), + Expanded = Table.ExpandTableColumn(InsertedCustom, "Sheets", {"Data", "Name","Kind"}, {"D","N","K"}), NoPrintAreas = Table.SelectRows(Expanded, each not Text.Contains([N], "$")) + OnlySheets = Table.SelectRows(NoPrintAreas, each Text.Contains([K], "Sheet")) in - NoPrintAreas + OnlySheets