Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Many to many

Bridge table is created without duplicates to avoid many to many relationship. But even after that getting relationship error while pulling all the three tables together

  • Hi Anonymous ,

    Thanks for reaching out.

    When you've already created a bridge table without duplicates but still encounter relationship errors while pulling all three tables together, there are a few key areas worth verifying:

     

    1. Ensure the relationships are properly configured as many-to-one or one-to-many. If the bridge table is constructed correctly, there should be no many-to-many cardinality in the model.

    2. Double-check that the bridge table doesn't contain hidden or unexpected duplicates in the join columns. Even a single duplicate can lead to modeling issues.

    3. Be mindful of the direction of relationships. Avoid using bi-directional filters unless specifically required and validated.

    4.Make sure that the key columns used in the relationships are of matching data types (e.g. both sides should be Text or both should be Whole Number).

    5. Power BI may deactivate a relationship if there are circular references or ambiguous paths. Use the USERELATIONSHIP() function in your measures if needed to work with inactive relationships.

    6. If the tables are not connected with valid relationships, avoid bringing fields from all three into the same visual directly. Instead, use measures that respect the bridge relationship logic.

     

    For more guidance, you may find these resources helpful:

    If you can share a screenshot of your model or sample data, we can help pinpoint the exact issue more precisely.

     

    Hope this helps. Please reach out for further assistance.
    If this post helps, then please consider to Accept as the solution to help the other members find it more quickly and a kudos would be appreciated.

     

    Thank you.

5 Replies

  • Hello Anonymous ,

     

    The bridge table has need primary key which means every row is unique such as Material ID. If you've created a bridge table in power query. Make sure remove duplicates if there are some duplicates. To understand quickly is there any duplicate in power query. 

     

    Enable red highlated area in transform data.

     

    İf you are the one who prefers create calculated table. You can check the video how to implement one by one.

    Bridge table: target=_blank target=_blankhttps://www.youtube.com/watch?v=P7tAvLfiD_8

     

    Kind Regards,
    Gökberk Uzuntaş

    📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

    🔗 Stay Connected:
    📘 Medium |
    📺 YouTube |
    💼 LinkedIn |
    📷 Instagram |
    🐦 X |
    👽 Reddit |
    🌐 Website |
    🎵 TikTok |

  • v-veshwara-msft's avatar
    v-veshwara-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

    Thanks for reaching out.

    When you've already created a bridge table without duplicates but still encounter relationship errors while pulling all three tables together, there are a few key areas worth verifying:

     

    1. Ensure the relationships are properly configured as many-to-one or one-to-many. If the bridge table is constructed correctly, there should be no many-to-many cardinality in the model.

    2. Double-check that the bridge table doesn't contain hidden or unexpected duplicates in the join columns. Even a single duplicate can lead to modeling issues.

    3. Be mindful of the direction of relationships. Avoid using bi-directional filters unless specifically required and validated.

    4.Make sure that the key columns used in the relationships are of matching data types (e.g. both sides should be Text or both should be Whole Number).

    5. Power BI may deactivate a relationship if there are circular references or ambiguous paths. Use the USERELATIONSHIP() function in your measures if needed to work with inactive relationships.

    6. If the tables are not connected with valid relationships, avoid bringing fields from all three into the same visual directly. Instead, use measures that respect the bridge relationship logic.

     

    For more guidance, you may find these resources helpful:

    If you can share a screenshot of your model or sample data, we can help pinpoint the exact issue more precisely.

     

    Hope this helps. Please reach out for further assistance.
    If this post helps, then please consider to Accept as the solution to help the other members find it more quickly and a kudos would be appreciated.

     

    Thank you.

    • v-veshwara-msft's avatar
      v-veshwara-msft
      Icon for Community Support rankCommunity Support

      Hi Anonymous ,

      Just checking in to see if you query is resolved and if any responses were helpful. If so, kindly consider marking the helpful reply as 'Accepted Solution' to help others with similar queries. 

      Otherwise, feel free to reach out for further assistance.

      Thank you.

  • v-veshwara-msft's avatar
    v-veshwara-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

    Following up to see if your query has been resolved. If any of the responses helped, please consider marking the relevant reply as the 'Accepted Solution' to assist others with similar questions.

    If you're still facing issues, feel free to reach out.

    Thank you.

  • v-veshwara-msft's avatar
    v-veshwara-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

    We’re following up once more regarding your query. If it has been resolved, please mark the helpful reply as the Accepted Solution to assist others facing similar challenges.

    If you still need assistance, please let us know.
    Thank you.