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
CAPSTALKER
Helper I
Helper I

Whole database imported into one table

I'm connecting to SQL Server database. I have a weird situation where whole database seems to be imported in one table. Other tables are ok. I'm wondering what makes this behaviour and most of how to delete this table and force it to read correct table? On the SQL Server everythings ok, I know this because other pbix's work fine.

 

1 ACCEPTED SOLUTION

This got fixed by entering table's Advanced editor. For some reason I had only rows 1 and 2 there:

 

let
Source = Sql.Database("SERVER", "db_name"),
dbo_Target = Source{[Schema="dbo",Item="Goal"]}[Data]          <-- this one was missing

#"Renamed Columns" = Table.RenameColumns(dbo_Goal,{{...     <-- and this one too

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @CAPSTALKER 

I think when you get data from SQL server, you select the whole database to load instead of select the tables to load.

For example:

1.JPG

2.JPG

And here is a blog for you refer to.

 

Best Regards,

Lin

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

This got fixed by entering table's Advanced editor. For some reason I had only rows 1 and 2 there:

 

let
Source = Sql.Database("SERVER", "db_name"),
dbo_Target = Source{[Schema="dbo",Item="Goal"]}[Data]          <-- this one was missing

#"Renamed Columns" = Table.RenameColumns(dbo_Goal,{{...     <-- and this one too

hi, @CAPSTALKER 

It's pleasant that your problem has been solved, could you please accept the reply as solution, that way, other community members will easily find the solution when they get same issue.  Smiley Very Happy

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
CAPSTALKER
Helper I
Helper I

tempsnip.png

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.