Forum Discussion

LoryMenCR's avatar
LoryMenCR
Icon for Helper I rankHelper I
2 years ago
Solved

many-to-many

Dear All,

I have the following model:

 

 

I need to associate a Date Column in Table "Date" to a column in Table "Movimenti".

I tried to relate the two tables with key PROGRESSIVO but it is a many to many.

 

Do you think I can do something in this case?
THANK YOU

 

3 Replies

  • LoryMenCR pls elaborate, I am not understanding your requirement, many to many is fine, if your data is having duplicates, Power BI will pick up many to many but you can also try to use a bridge table

    • LoryMenCR's avatar
      LoryMenCR
      Icon for Helper I rankHelper I

      Dear raji_n I don't know if the two tables have the same granularity 😞

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi LoryMenCR ,

    I would not recommend that you create any more relationships between these two tables, as both of your tables already have a relationship with another table:

    If say you want to continue to create a relationship between the table Date and the table Movimenti (whether it is many-to-many or many-to-one or one-to-one), it will form a closure relationship, which is highly discouraged in Power BI Desktop because multiple active relationships create conflicts and multiple relationships may lead to unclear dependencies between tables.
    https://learn.microsoft.com/en-us/analysis-services/tabular-models/relationships-ssas-tabular?view=asallproducts-allversions#single-active-relationship-between-tables 

    Best Regards,
    Dino Tao
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.