lrobbo314
Well-known Member
- Joined
- Jul 14, 2008
- Messages
- 3,957
- Office Version
- 365
- Platform
- Windows
I have a simple PQ query here.
When I invoke the custom function I need to manually type in the Table name. How would I make it to where it gives a dropdown of all the available tables in the workbook?
I have a list of all the tables in the workbook already, just need to know how to let the user choose from that list.
Power Query:
(tbl as text) as table =>
let
Source = Excel.CurrentWorkbook(){[Name=tbl]}[Content],
List = Table.AddColumn(Source, "Explode", each {1..[APP]}),
Explode = Table.ExpandListColumn(List, "Explode"),
RC = Table.RemoveColumns(Explode,{"Explode"}),
ToOne = Table.TransformColumns(RC,{{"APP", each 1}})
in
ToOne
When I invoke the custom function I need to manually type in the Table name. How would I make it to where it gives a dropdown of all the available tables in the workbook?
I have a list of all the tables in the workbook already, just need to know how to let the user choose from that list.