Forum Discussion
andy_vdg
8 years agoRegular Visitor
Rename columns based on data in another table
Hi This is similar to https://community.powerbi.com/t5/Desktop/Auto-renaming-columns-based-on-value-in-another-table/m-p/79018#M32937 with some added complexity I have a rather large table (fro...
- 8 years ago
Based on my test, you may refer to the following code.
#"Renamed Columns" = Table.RenameColumns(Source , Table.ToRows(Table.SelectColumns(Table.AddColumn(Table2, "ID2", each "customfield_" & Text.From([ID])) , {"ID2", "cfname"})) , MissingField.Ignore)
v-chuncz-msft
8 years agoCommunity Support
Based on my test, you may refer to the following code.
#"Renamed Columns" = Table.RenameColumns(Source
, Table.ToRows(Table.SelectColumns(Table.AddColumn(Table2, "ID2", each "customfield_" & Text.From([ID]))
, {"ID2", "cfname"}))
, MissingField.Ignore)Dilesha08
6 years agoFrequent Visitor
I am doing a jira analysis and my question is a bit similar to this issue.
https://community.powerbi.com/t5/Desktop/Rename-the-columns-of-a-table-using-the-values-from-another/m-p/1088045#M503908
Can you please help me with this issue?