Forum Discussion
Rename columns in dataset without breaking all deployed reports
- 4 years ago
This should be possible with pbi-tools.
TL;DR from here https://data-goblins.com/power-bi/replace-report-measures
-
Download pbi-tools desktop CLI and make sure it’s in your path env variables
-
Decompile your .pbix using pbi-tools extract, referring to the pbix path
-
In the pbi-tools output, either programmatically or manually replace the field & table references in the broken visuals .json files. For each visual, you must loop through the key/value pairs that refer to tables, fields, or both.
-
Recompile your .pbix using pbi-tools compile, referring to the path of the pbix output folder
-
Reopen your .pbix file to confirm that the changes are done.
You may need to do some testing if you have complex visuals with a lot of formatting, to make sure you cover the necessary keys and don’t mistakenly replace other text that you didn’t intend.
-
Have come across exactly this problem. If you create a column with exactly the same spec as the one to be renamed, but give it the new name you won't break any reports. Then in the cloud you will still have to manually replace the old one (where it is used) with the new one - a manual but safe process!