Skip to content

Commit

Permalink
Update Files.SheetsInFolder.pq
Browse files Browse the repository at this point in the history
Hello,
Sometimes i have name like "_xlnm._FilterDatabase" in column name.
We have 2 ways - add a new filter in #OnlySheets or created a new line.
I like new line :) 
Thanks for your work!
  • Loading branch information
Illya authored Nov 21, 2017
1 parent f859a23 commit 1186789
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Files.SheetsInFolder.pq
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1186789

Please sign in to comment.