Forum Discussion
Anonymous
5 years agoNot applicable
Changes in column name affecting subsequent Power Query steps
Hi guys, i have a recurring problem. I have a table in Power Query and a lot of transformations on that table. Now sometimes it happens that a column name changes in the original table or t...
- 5 years ago
Hello Anonymous
you can copy paste the code into some editor and replacing your column-references at once.
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
CNENFRNL
5 years agoCommunity Champion
Anonymous , I'm afraid you have to manually change those hard-coded column names one by one; but a more generic reference to the name of a certain column,
Table.ColumnNames(#"Some Step"){1}renders your M code more flexible; so when you change a column's name next time, you don't need to adjust the M code again.