Forum Discussion

asriniva33's avatar
asriniva33
Frequent Visitor
10 years ago

Dimensional model querying

Hi,

 

I have connected my Power BI Desktop to TFS_Warehouse(Dimensional Model) database on Direct Query Mode. I am facing an issue when trying to get data from three different tables simultaneously into my chart.

 

Scenario: There is a Dimension Table(D1) connected to a Fact Table(F) with 1 to Many relationship. There is one relationship of Many to 1 from the same Fact(F) to a Date Dimension(D2). Now, when i am trying to display the fields from the three tables an error as "Can't determine relationships between the fields". 

 

But surprisingly if i try to display the data from two tables (one fact and one dimension), i am able to display the data without the error.

Could someone please let me know if there is any solution to my issue.

 

 

 

 

 

1 Reply

  • v-caliao-msft's avatar
    v-caliao-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi asriniva33,

     

    I have tested it on my local environment, we can reproduce this issue. The issue is cause by that there is no a directly relationship between those two dimension table. I use AdventureWorksDW2012 sample database in my test. I get data from three tables below.
    DimDate
    DimProductCategory
    FactInternetSales
    there is no directly relationship between DimProductCategory and FactInternetSales, the relationship is
    FactInternetSales->DimProduct->DimProductSubcategory->DimProductCategory 

    when I load DimProduct and DimProductSubcategory, the issue disappear.

     

    Regards,

    Charlie Liao