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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
smpa01
Super User
Super User

TMDL view and refactoring

Is it possible to apply refactoring to a colum name for any of its instance (source column, calculated column, calculation group, measures) all at once from code editor of the TMDL view?

 

To simplify, How can I rename a column (tbl_1[colA]) only at source table and be assured that all the relevant dependecncies to be updated at once (any calculated column using tbl_1[colA], calculation group using tbl_1[colA], measures using tbl_1[colA])? and not simply changing all occurence of colA cause tbl_1 and tbl_2 both has colA.

 

Does TMDL code editor in pbi let me do this? I am also open to VS code

 

VS code lets you do that like this 

 

@RuiRomanoMS 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 REPLY 1
v-denglli-msft
Community Support
Community Support

Hi @smpa01 ,

After testing, I'm afraid the functionality you mentioned is not available at this time.
When editing a Power BI TMDL file in VS code, after modifying a column name, there is no prompt to guide you to modify other instances that reference this column.

vdengllimsft_1-1737440795370.png

 

You need to do it manually or use advanced C# scripts in Tabluar Editor.

vdengllimsft_0-1737440613885.png

 

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.