Forum Discussion
umtkyn
2 years agoRegular Visitor
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,
- 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
AntrikshSharma
2 years agoCommunity Champion
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
umtkyn
2 years agoRegular Visitor
how do you manage if you need to do it in the same file ?