Forum Discussion
Nazdac2024
Advocate I
1 year agoSimple Way to Handle Column Renames in Power BI?
Hi all, I asked something similar before but the answers were a bit too advanced for me, so I’ll try to explain it in a simpler way. I have an Excel file imported into Power BI. In Power Query I a...
- 1 year 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.
AbdulhadiNL2025
1 year agoRegular Visitor
Is this going to update also colmun names in measures and visuals , so they will not collapse?
Gabry
Super User
1 year agoNope, 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)