Forum Discussion

umtkyn's avatar
umtkyn
Regular Visitor
2 years ago
Solved

list all tables' names dynamically

hi,   Is there a way to create a list of all tables' names dynamically in an excel file with powerquery ?   Thanks,
  • AntrikshSharma's avatar
    2 years ago

    umtkyn You can use the path of the current file and then filter for Tables.

     

    let
        Source = Excel.Workbook ( File.Contents ( "C:\Users\antsharma\Downloads\1.xlsx" ) ),
        TableNames = Table.SelectRows ( Source, each [Kind] = "Table" )[[Name]]
    in
        TableNames