Forum Discussion
anantv
3 years agoNew Member
Copy header column only
Hello, My data table has more than 100 columns. I would like to just copy column headers and paste into excel and verify column names with another table. How do I just copy column headers only? I ...
BA_Pete
3 years agoSuper User
Hi anantv ,
In Power Query, just create a new blank query and paste this over the default code in Advanced Editor:
let
Source = Table.ColumnNames(queryName)
in
Source
...where 'queryName' is the name of the query that you want the list of column names for.
Pete
anantv
3 years agoNew Member
Pete,
Thank you very much. This is exactly the solution, that I needed.
Thanks