Forum Discussion
expression error "field-name" already exists while renaming column headers
- Anonymous3 years ago
Hi monojchakrab ,
Maybe the blog and the similar post could help you.
Efficiently rename columns with a function in Power BI and Power Query (thebiccountant.com)
Solved: Dynamically rename columns from a column names tab... - Microsoft Power BI Community
It works fine on my sample.
= Table.AddColumn(#"Added Custom", "Custom.1", each Table.RenameColumns( [Data], {"Name", "NewColumn"}, MissingField.Ignore ))You can download my attachment for details.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi monojchakrab ,
Maybe the blog and the similar post could help you.
Efficiently rename columns with a function in Power BI and Power Query (thebiccountant.com)
Solved: Dynamically rename columns from a column names tab... - Microsoft Power BI Community
It works fine on my sample.
= Table.AddColumn(#"Added Custom", "Custom.1", each Table.RenameColumns(
[Data],
{"Name", "NewColumn"},
MissingField.Ignore
))
You can download my attachment for details.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.