Forum Discussion

Peter_Yaacoub's avatar
Peter_Yaacoub
Frequent Visitor
4 years ago
Solved

Combine selected worksheets from workbook in Folder

Hi everyone!  New to power query and I need some help please. I am currently connected to a folder and I want to apply my transformations to only a certain number of worksheets in that workbook tha...
  • jennratten's avatar
    jennratten
    4 years ago

    To select multiple sheets by name, you could do it like this:

        #"Filtered Rows1" = Table.SelectRows(#"Expanded GetManufacturingData", each ([Hidden] = false) and ([Kind] = "Sheet") and ([Name.1] = "CPMI" or [Name.1] = "Sheet2" or [Name.1] = "Sheet3") ),

    or like this:

        #"Filtered Rows1" = Table.SelectRows(#"Expanded GetManufacturingData", each ([Hidden] = false) and ([Kind] = "Sheet") and ( List.Contains({"CPMI", "Sheet2", "Sheet3"}, [Name.1] ) ) ),