The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
let
// manuallly building src
//contains name of each pq table (opposed to dax derived table)
//starting with a single element for the sample
src={"t1"}, //t1 is the name of a pq table
//need to get the column names
colNames = Table.ColumnNames(src{0}) //errors out
in
colNames
I am trying the above and it is failing. If it can work, I can loop through all table names.
I am aware DAX can get the colNames for all tables in a DB; But I am looking for a PQ solution.
Thank you in advance
Solved! Go to Solution.
let
src={t1},
colname=Table.ColumnNames(src{0})
in colname
colNames = Table.ColumnNames(src)
Also consider using Expression.Evaluate if you have special circumstances.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.