Forum Discussion

LearnPowerBI5's avatar
LearnPowerBI5
Frequent Visitor
3 years ago
Solved

Cannot create active relationship between date table and multiple dim tables

I am new to data modeling and require help. I have multiple fact tables (Tables - Data_2020, Data_2021, Data_2022, Data_Fifa)  year-wise and I want to connect them to one date table, however, the date table establishes an active relationship with only one fact table and an inactive relationship with other fact tables thus giving errors showing the same values across the months. I want to create an active relationship with all the fact tables and am unable to do so.

 

Thanks.

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    You are doubling relationships if you make connection to dimtables and between data tables.

     

    Model works if you delete many to many and connect 🙂

     

8 Replies

  • PaulDBrown's avatar
    PaulDBrown
    Community Champion

    Can you share a link to a sample PBIX file with sample sources files hosted in a cloud service?

    • LearnPowerBI5's avatar
      LearnPowerBI5
      Frequent Visitor

      I do not have a Power BI Pro or Premium Per User license. Is it possible to review the file from the below Onedrive link?

       

      shorturl.at/cuwZ7

       

      • PaulDBrown's avatar
        PaulDBrown
        Community Champion

        Thanks for the PBIX. However, ideally we should be creating the structure in Power Query, and for that I will also need sample files for the different tables (otherwise I cannot work the model in Power Query). Perhaps you can create a zip file with the pbix and the sample files to download?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Partially you re correct to use dimdate. The end goal to use dimntables to avoid many to many relationships. For 90% they are responsible why the relationships are blocked. There should be notification which relationship is blocking you table link, double click on not active ones

     

    What is the column link for relationships between them? Project id or something like that? Try to create new table and use within it dax with distinct union. Connecting them to new dimtable and removing many to many relationships could help. 

    • Anonymous's avatar
      Anonymous
      Not applicable

      You are doubling relationships if you make connection to dimtables and between data tables.

       

      Model works if you delete many to many and connect 🙂