Forum Discussion
vancromy
8 years agoFrequent Visitor
PQ - Rename Column Names based of column names from another table
Hi. I'm sure this is really simple but I can't seem to find the answer online. Many queries are about translating rows to Column Names but I'm specifically after how I can make the column names o...
- 8 years ago
You were pretty close already:
#"Rename Columns" = Table.RenameColumns(Table2, List.Zip( { Table.ColumnNames(Table2), Table.ColumnNames(Table1) } ) )
ImkeF
8 years agoCommunity Champion
You were pretty close already:
#"Rename Columns" = Table.RenameColumns(Table2, List.Zip( { Table.ColumnNames(Table2), Table.ColumnNames(Table1) } ) )
vancromy
8 years agoFrequent Visitor
Thanks both! That's done the trick and I've learnt about a new PQ function in the process :)