Forum Discussion

JSmith912's avatar
JSmith912
Frequent Visitor
2 years ago
Solved

IF Measure causing duplicates

Hi, I'm seeking advice on an issue I'm encountering. Unfortunately, I can't provide exact screenshots due to confidentiality reasons, so I'll do my best to describe the situation clearly. At our com...
  • ajohnso2's avatar
    2 years ago

    Is the relationship in your model Fact to Fact? i.e possibly many to many relationship?

    If so consider creating a bridging table so you can insure integrity.

    I.e create a table with all ID's from Table A and all ID's from Table B (ensure you remove duplicates). Your relationships can then be configured to join to the bridge table, both of your tables will have a 1 side (to the bridge table) and a many side on your fact tables.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi JSmith912 ,

     

    Thanks for the reply from ajohnso2 / MFelix .

     

    So, you now have two tables with ID numbers and relationships to the data extracts from the two applications. Am I understanding this correctly?

     

    Make sure the relationships between the tables are set up correctly. Specifically, check that the relationships are based on unique ID numbers and that they are set up as one-way. This helps ensure that Power BI interprets the data model correctly.

     

    You can create an ID table using:

    ID Table = VALUES("Table"[ID])

     

    This syntax will create an ID table with no duplicate values.

     

    Relate this table to the two Fact tables, which should now have a propagation relationship of Single.

     

    Try it again under this condition to see if it works.

     

    If you have any other questions please feel free to contact me.

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!