cancel
Showing results for 
Search instead for 
Did you mean: 
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

Accepted Solutions
prateekraina Memorable Member
Memorable Member

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

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

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

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

eheidari
Frequent Visitor

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

Thanks Prateekraina,

 

It's fixed.

 

Emma

Ntn2018
Frequent Visitor

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

Hi

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

prateekraina Memorable Member
Memorable Member

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

Hi @Ntn2018,

 

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

 

Prateek Raina

Ntn2018
Frequent Visitor

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

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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors