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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jaryszek
Memorable Member
Memorable Member

How to update field names using XMLA for all visuals without power query?

Hello,

I am using Direct Lake over OneLake - how to rename columns using XMLA without power query possibilities which is disabled in Direct Lake mode? 

It is possible or fileds should be renamed only upstream? 

Best,
Jacek

9 REPLIES 9
jaryszek
Memorable Member
Memorable Member

Ok any tools for doing this without destroying visuals ?

Hi @jaryszek ,

You can use the Fabric notebooks by using the PySpark code to change the column names of a table in Lakehouse. Please refer below PySpark code. to rename the column names.

 

spark.read.table("tableName")\
.withColumnRenamed("oldColumnName", "newColumnName")\
.write\
.mode("overwrite")\
.option("overwriteSchema", "true")\
.saveAsTable("tableName")

 

Please refer below example.

 

1. I have created sample data in Lakehouse.

 

vdineshya_0-1759920277625.png

 

2. Created a Notebook, and run the below sample PySpark code to rename the column names.

 

vdineshya_1-1759920390761.png

 

It will change the column names and save the Notebook. And then refresh the table in Lakehouse, it will reflect the changes.

 

I hope this information helps. Please do let us know if you have any further queries.

 

Regards,

Dinesh

 

 

 

thanks, let's do not close topic, maybe somebody will propsoe another tool also.

Best,
Jacek

Hi @jaryszek ,

Thank you for the update, we will keep this thread open while continuing to look for alternative solutions.  If you discover any workaround , kindly post them here, as it could benefit other community members.

 

Regards,

Dinesh

GeraldGEmerick
Solution Sage
Solution Sage

@jaryszek Use SQL Server Management Studio (SSMS)

It is not possible in Tabular Editor 3? 

Hi @jaryszek ,

Thank you for reaching out to the Microsoft Community Forum.

 

Yes, it is possible to rename columns in Direct Lake mode using XMLA.

 

1.  Use Tabular Editor 3 (Enterprise Edition) to rename columns via XMLA, but ensure you first rename them in the web interface to prevent reversion during schema sync.

 

2. Rename columns upstream in the Lakehouse or Warehouse before adding them to the semantic model.

 

Please refer below link.

Power BI usage scenarios: Advanced data model management - Power BI | Microsoft Learn

 

I hope this information helps. Please do let us know if you have any further queries.

 

Regards,

Dinesh

1.  Use Tabular Editor 3 (Enterprise Edition) to rename columns via XMLA, but ensure you first rename them in the web interface to prevent reversion during schema sync.

Ok there is a displayName but after changing it i need to manually adjust fields on report visuals, how to avoid this?

Best,
Jacek

Hi @jaryszek ,
Before doing that, rename them first in the web interface to prevent the schema from reverting during sync.

Alternatively, rename them upstream in the Lakehouse or Warehouse so that the names stay consistent.

If you change only the displayName, you’ll still need to manually fix visuals that reference the old field name — Power BI doesn’t auto-map renamed fields in Direct Lake mode yet.


Happy to help!

Best regards,
Disha Shree | LinkedIn
If it worked for you, please mark it as Accepted and give it a Kudos 😊

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.