Forum Discussion
IF Measure causing duplicates
- 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.
- Anonymous2 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 TeamIf 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!
Hi JSmith912 ,
Did our answer help you?
If there is an answer that helped you, please accept it as a solution. This will be of great help to other users who have similar problems as you.
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!