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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
eheidari
Frequent Visitor

Is it possible to rename a table in database when connection is Direct Query?

Hi everyone,

 

I've already created a report in power bi desktop via direct query. I would like to know if the name of table is changed in sql database, is there any way to update/modify my report or I should create another report again?

 

Thanks,

Emma

1 ACCEPTED SOLUTION
prateekraina
Memorable Member
Memorable Member

Hi @eheidari,

 

No need to create another report. You can do following to rename your table in Power BI also:

1. Go to Query Editor in Power BI Desktop.
2. Click on your table and in Power Query section on the right click on Navigation.
3.  Change the item name which is your table now. It will look like below:

= Source{[Schema="dbo",Item="TableName"]}[Data]

Thanks !!!

View solution in original post

5 REPLIES 5
prateekraina
Memorable Member
Memorable Member

Hi @eheidari,

 

No need to create another report. You can do following to rename your table in Power BI also:

1. Go to Query Editor in Power BI Desktop.
2. Click on your table and in Power Query section on the right click on Navigation.
3.  Change the item name which is your table now. It will look like below:

= Source{[Schema="dbo",Item="TableName"]}[Data]

Thanks !!!

Thanks Prateekraina,

 

It's fixed.

 

Emma

Hi

did you have to correct all the visuals using fields from that table as well?

Hi @Ntn2018,

 

Ideally, it should not happen. The change in query editor reflects in all the visuals after refresh.

 

Prateek Raina

Thank you prateekraina.

I thought this would have been necessary, as it happens for sure if the connection is LIVE to Tabular Model AS.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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