Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
zenisekd
Super User
Super User

Rename column in a Power BI semantic model without breaking related reports

Hi, 

I have one semantic model report, which is being used by many other reports. 

There is one table with a typo; I desperately need to fix it. However, the incriminated table's columns are being used across related reports (which use the report as a "semantic model" data source. So if I try to fix the table name in Desktop and republish it or if I try to fix it online in service, it breaks all the visuals in the related reports. 

My question is what would be the most efficient way to solve this issue. The simple, yet time wasting would be to fix it in the desktop and then go report by report and fixing all broken visuals (e.g. a value form the incriminated column is used in the visual level filter). This is not efficient. 

I don't use git integration, but I am sure that there is some simpler way, where I just CTRL+F all the misspelled table code in the source code and replace it with the correct code. I am willing to do this report by report (15 reports), but I am not sure how ...

1 ACCEPTED SOLUTION
zenisekd
Super User
Super User

Thank you @danextian , I followed the suggested blog post, however, I struggled with using the Power Shell console to run and decompose the .pbix to .zip file. 


I did some more digging and it turned up, that the most useful is TMSL format, which can be gained natively from Power BI nowadays. There is also TMDL, however that one decomposes the code to the single page level code files, which is not my desired outcome. I needed one file, which will contain all pages, so I could use notepad++ and replace the code. That can be done by the TMSL format. 

To do this, I had to select following preview feature (and uncheck the others, otherwise it would create TMDL). 

zenisekd_0-1736768863820.png

 


This video was my source:
https://www.youtube.com/watch?v=EJ4cTuUc3so&t=601s&ab_channel=Fernan

 

View solution in original post

3 REPLIES 3
zenisekd
Super User
Super User

Thank you @danextian , I followed the suggested blog post, however, I struggled with using the Power Shell console to run and decompose the .pbix to .zip file. 


I did some more digging and it turned up, that the most useful is TMSL format, which can be gained natively from Power BI nowadays. There is also TMDL, however that one decomposes the code to the single page level code files, which is not my desired outcome. I needed one file, which will contain all pages, so I could use notepad++ and replace the code. That can be done by the TMSL format. 

To do this, I had to select following preview feature (and uncheck the others, otherwise it would create TMDL). 

zenisekd_0-1736768863820.png

 


This video was my source:
https://www.youtube.com/watch?v=EJ4cTuUc3so&t=601s&ab_channel=Fernan

 

Anonymous
Not applicable

Hi @zenisekd 

 

I wish you all the best. I would like to confirm whether you have successfully resolved this issue or if you need further assistance. If danextian 's reply was helpful to you, could you consider marking it as a solution? This will help more users who are facing the same or similar difficulties. Thank you!

 

Best Regards,
Yulia Xu

danextian
Super User
Super User

Hi @zenisekd 

 

It's a pretty old blog post but this might be what you need - https://data-goblins.com/power-bi/replace-report-measures 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.