Forum Discussion
Simple Way to Handle Column Renames in Power BI?
- 11 months ago
Hey,
I think it should be enough if you add a step in power query to rename the columns using the mapping table, you should try to add this step
= Table.RenameColumns(PreviousStep, List.Zip({MappingTable[OldColumnName], MappingTable[NewColumnName]}), MissingField.Ignore)I created an example PBIX file for you (attacched). Feel free to check it out.
Hey,
I think it should be enough if you add a step in power query to rename the columns using the mapping table, you should try to add this step
= Table.RenameColumns(PreviousStep, List.Zip({MappingTable[OldColumnName], MappingTable[NewColumnName]}), MissingField.Ignore)
I created an example PBIX file for you (attacched). Feel free to check it out.
Is this going to update also colmun names in measures and visuals , so they will not collapse?
- Gabry11 months agoSuper User
Nope, the goal is to take the new column names from the source and rename them back to the old ones, so nothing breaks.
(To avoid breaking the query, a step needs to be added in PQ. However, the column names in the report will remain unchanged)