Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
This is similar to https://community.powerbi.com/t5/Desktop/Auto-renaming-columns-based-on-value-in-another-table/m-p/7... with some added complexity
I have a rather large table (from JIRA) with quite a few columns that are named in the following format
customfield_XXXXX - note that not all columns have this name.
I have another table which defines the custom field name.
For all columns that are named customfield_XXXXXX I want to look up the cfname value in the other table and replace the column header in Table1.
The above answer I found only works if all column headers are to be replaced - my scenario requires finding each column to be replaced, stripping the ID from the current name and then replacing it with the value from the other table.
Any help would be greatly appreciated.
Andy
Solved! Go to Solution.
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)
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)
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...
Can you please help me with this issue?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |