Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Multiple tables from same DB vs Query

Hi, I saw across forums and tutorials several users loading different tables from a database and then creating relations on Power BI to work. With this you have to use formulas with the "RELATED" op...
  • Greg_Deckler's avatar
    Greg_Deckler
    8 years ago

    It's actually a pretty common to load multiple tables from the same DB and create the relationships in Power BI data model. If you have a straight-up database, then all of the tables are disconnected technically. You may have keys defined that "tie" the tables together but those relationships really only exist in the SQL statements that either insert, retrieve and delete data from the database.

     

    Now, if you have a cube, either MDX or Tabular, then those relationships exist in the cube as actual defined relationships between tables and you could connect Power BI to the cube directly and that's probably a better way to go.

     

    When people build relationships in Power BI, they are generally taking the disconnected tables that are imported, either from the same database or multiple data sources and are creating that tabular cube within the Power BI data model.