Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Relationships error - Cartesian product

Hello,    I am getting an error by using fields from each tables of my model into the same table visual. I think I understand the error but I want to be sure.    Here's my model :    Here...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous

    Due to your relationship is many to one, this may be a logic problem in power bi.

    I build two kinds of relationships one to one and many to one.

    Build table visuals:

    Many to one get error and one to one is right.

    If you want to get all name columns in one visual, you may build a new table by Merge in Power Qury Editor.

    Select Company Table and Company Inspector Table

    Then we select Inspector Name Column and ID_Inspector in Expand.

    Result:

    Then we do the same steps to merge this table with other two tables.

    Result:

    Build a Table visual, result is right.

    You can download the pbix file from this link:  Relationships error - Cartesian product

     

    Best Regards,

    Rico Zhou

     

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