Forum Discussion
Simple Way to Handle Column Renames in Power BI?
- 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.
I have a Power BI solution with reports connected to Databricks tables.
The backend team is planning to change the naming conventions, meaning all table and column names will be updated.
This will cause issues in the frontend (visuals, measures, and applied filters will break).
I already have mapping tables for all the changes.
Is there a way to apply these changes automatically to my reports, for example with a script that updates everything?
Thanks in advance!
To automate Power BI updates after Databricks renaming:
- Use Tabular Editor or TOM scripting to rename tables/columns in your model using your mapping table.
- Validate broken visuals/measures post-renaming.
- Deploy updated PBIX via Power BI REST API or Power Automate.
- For future-proofing, connect Power BI to stable views in Databricks instead of raw tables.