Forum Discussion

TechSavvySam's avatar
TechSavvySam
New Member
8 years ago

Direct Query - add tables after initial setup

After your initial setup of a Direct Query and picking the 20 or 30 tables, how do you go back and add more tables?  Every path I follow in the UI leads me to creating a whole separate data source which then kills the ability to do a direct query.

 

Also, if there is some place this is documented, please point it out to me.  I was unable to find it and I'm pretty good at searching for solutions.

 

I've searched, read articles that I could find about Direct Query, and now searched this forum for an answer to this.  I'm sure I'm missing something obvious because this feature must exist--to no have it would be silly.

 

That being said, it would behoove the Power BI team to make the methodology for doing this more obvious in the user interface.

 

 

5 Replies

  • Hi,

     

    When you are using direct query to connect to one datasource, and you would like to add some more table from that datasource, you could go  to “Recent Sources” >> then select the data source you are currently using.

    So you do not need to start from the beginning.

     

    Also, “When importing data, it is possible to combine data from multiple sources into a single model, for example, to easily join some data from a corporate SQL Server database with some local data maintained in an Excel file. This is not possible when using DirectQuery. When selecting DirectQuery for a source, it will then only be possible to use data from that single source (such as a single SQL Server database).” See Using DirectQuery in Power BI

     

    Best Regards,

    Henry

    • TechSavvySam's avatar
      TechSavvySam
      New Member

      Thanks for the quick response Henry,

       

      OK, I see how that could work because it brings up the list of tables.

       

      However...

       

      I had originally selected serverN - SandboxDatabase

       

      I then had gone into edit query at some point and selected "Data source settings", selected the data source, then clicked on "Change Source..." and changed "Database" to ProductionDatabase.  The originally selected tables were still selected and everything worked as I expected.

       

      So then all the recent sources show "serverN : SandboxDatabase" as my only option.  I select the top of those and it opens the "Navigator" but no tables are selected (I would expect the 4 I was originally testing with).

       

      If that doesn't reproduce the issue, not that I also exited Power BI Desktop over the weekend.

       

       

       

       

       

      • v-jianhe-msft's avatar
        v-jianhe-msft
        Resolver II

        Hi,

         

        Are you using two datasources, which are SandboxDatabase and the Production database? If so, it is not allowed to use two datasources using direct query.