Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |