Forum Discussion

akj2784's avatar
akj2784
Icon for Post Partisan rankPost Partisan
9 years ago

Conformed dimensional modeling in Power BI

Hi Team,

 

I have a scenario where there are 2 dimensions D1 and D2 and two facts F1 and F2. 

Both the dimensions have relationship with both the fact. However when I try to create join between D2 and F2, it says ambiguity between D1 and D2 and it doesnt allow me to create the last join after creating join between D1 and F1, D1 and F2, D2 and F1.

 

Is there any other approach we have to follow to create similar requirement ?

We call it as conformed dimensional modeling.

 

The reason of doing is I need to query all the tables in one report.

 

Any help would be appreciated.

 

Regards,

Akash

8 Replies

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

    Hi akj2784,

    You want to combine the two tables into one, right? If it is, you can combine them in Power Query Editor, please review: 

    Append vs. Merge in Power BI and Power Query.

    What your data structure looks like? Could you please create sample tables and list expected result, so that we can post solution which is close to your requirement. 

    And you said you got error when you join two tables, how did you do that, could you please share the DAX formula for further analysis? For joining tables in DAX, please review more details from From SQL to DAX: Joining Tables.

    Best Regards,
    Angelia

    • akj2784's avatar
      akj2784
      Icon for Post Partisan rankPost Partisan

      Hi Angelia,

       

      No I don't want to merge two tables.

       I am not sure how to upload the image. But let me try to explain the requirement.

       

      Dim D1: It has Product details like P1, P2, P3, P4 etc

      Dim D2: It has Hierarchy like VP, MD etc. Products are tagged to VP, MD etc.

      Fact F1: It has Funding for all the Products

      Fact F2: It has Revenue for all the Products

       

      Both the facts have FK of D1 and D2. 

      Now I want to find Products tagged to a VP, and the corresponding Revenue and Funding for those Products.

       

      A very starightforward requirement if I consider Oracle BI tool which creates two different SQL query internally one with fact 1 and other with fact 2. And internally stiches the result and show it in the UI.

       

      But in Power BI, it is not allowing me to create joins where there is ambiguity. So looking for some other approach we can use for such scenario. In real time analytics, this is very basic scenario. We cannot always have single star schema to create reports.

       

      Regards,

      Akash

      • akj2784's avatar
        akj2784
        Icon for Post Partisan rankPost Partisan

        Is it not feasible in Power BI ?