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

How to add more tables from database

When creating my desktop file, I selected few tables, now since its working good, I would like to add more tables

 

? How to add more tables to the project from the datasource already selected

2 ACCEPTED SOLUTIONS
Phil_Seamark
Microsoft Employee
Microsoft Employee

There are two modes for getting data into Power BI Desktop.  

 

1) Import

2) Direct Query

 

You can't mix and match, so all queries need to be 1) or all 2).

 

There are pros and cons to both.  If your dataset is small then I'd recomment Import.  If your dataset is large (and frequently changing) then perhaps Direct Query is better - particulary if your source is MS SQL or SSAS


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Anonymous
Not applicable

Hi @mak,

In DirectQuery mode, all tables should come from same database. If you add tables of different database into the current Power BI Desktop file, you will get the above warning which indicates that you can switch to import mode.

 

Thanks,
Lydia Zhang

View solution in original post

6 REPLIES 6
Phil_Seamark
Microsoft Employee
Microsoft Employee

In Power BI desktop, just click the Get Data button on the Home ribbon and add your new query/table as a data source.

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

When I click on GetData or Recent datasource and click on teh Table, it is allowing me to import data, but is saying, that I need to use it as an Import rather than direct query

Screen Shot 2017-02-14 at 6.08.22 PM.png

 

 

Anonymous
Not applicable

Hi @mak,

In DirectQuery mode, all tables should come from same database. If you add tables of different database into the current Power BI Desktop file, you will get the above warning which indicates that you can switch to import mode.

 

Thanks,
Lydia Zhang

Hi

 

The problem was more with how you defined the Azure query string, your Azure SQL url should be well qualified and begin with

tcp:yourdb.database.windows.net;1433

 

that resolved the issue

Anonymous
Not applicable

Hey mak,  Do you ever get the feeling that these 'helpers' on such forums just paste in answers to questions that you DIDN'T ask?....  Cuz they don't know the answer you need. ;-(

Phil_Seamark
Microsoft Employee
Microsoft Employee

There are two modes for getting data into Power BI Desktop.  

 

1) Import

2) Direct Query

 

You can't mix and match, so all queries need to be 1) or all 2).

 

There are pros and cons to both.  If your dataset is small then I'd recomment Import.  If your dataset is large (and frequently changing) then perhaps Direct Query is better - particulary if your source is MS SQL or SSAS


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.