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) } ) )
Luthiendsa
7 years agoNew Member
Hi ImkeF,
Where do I put the " #"Rename Columns" = Table.RenameColumns(Table2, List.Zip( { Table.ColumnNames(Table2), Table.ColumnNames(Table1) } ) ) "?
I am a beginner in Power BI and I really could use the solution you gave.
- ImkeF7 years agoCommunity Champion
Hi , Luthiendsa ,
did you check the link from my signature already?: http://community.powerbi.com/t5/Webinars-and-Video-Gallery/Power-BI-Forum-Help-How-to-integrate-M-code-into-your-existing/m-p/179314
Please let me if that makes sense or you need further advise.