Clarification Needed on Relationship Example in unit "Work with Relationships and Cardinality"

Țîrlea Paul 20 Reputation points
2024-11-19T14:10:51.8133333+00:00

User's image

User's image

User's image

User's image

Hello,

I am currently working through the "Work with Relationships and Cardinality" unit, which introduces the concept of many-to-many relationships. However, I noticed that the example provided seems to depict a one-to-many relationship instead of a many-to-many one.

Here is the link of the unit: https://learn.microsoft.com/en-us/training/modules/design-model-power-bi/6-relationships-cardinality

To verify, I recreated the tables and tested the relationships in Power BI, and my results also indicate a one-to-many relationship. Could you kindly clarify this? I think I might be misunderstanding the intended scenario.

Thank you!
Paul Tirlea :)
User's image

This question is related to the following Learning Module

Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
605 questions
0 comments No comments
{count} votes

Accepted answer
  1. Syed Saleem Peera 12,280 Reputation points Microsoft External Staff
    2024-11-20T05:28:01.9666667+00:00

    Hi Țîrlea Paul,

    Thank you for reaching out to us on Microsoft Q&A forum.

    Based on the module's description and your observations, it seems there might be some confusion regarding the example provided in the "Work with Relationships and Cardinality" unit.

    A many-to-many relationship is typically used when multiple rows in one table relate to multiple rows in another table. However, if your testing indicates a one-to-many relationship, this could suggest that the scenario was either misinterpreted or not clearly conveyed in the learning module.

    To clarify:

    • One-to-Many Relationship: If one table has unique values (e.g., Customer ID) and relates to multiple rows in another table (e.g., multiple orders by a customer), this is a one-to-many relationship.
    • Many-to-Many Relationship: If neither table has unique values (e.g., multiple customers associated with the same accounts and vice versa), you would need to explicitly define a many-to-many relationship.

    In Power BI, many-to-many relationships can be set up by:

    1. Going to Manage Relationships > New.
    2. Choosing the columns from the two tables.
    3. Setting the cardinality to Many-to-Many and enabling bi-directional filtering if required.

    Given your results, it might be helpful to recheck the uniqueness of the columns involved or refer to Power BI's guidelines on Many-to-Many Relationships.

    If you are still facing any issue, please let us know in the comments and where you are encountering this error along with the screenshot for reference. We are glad to help you.

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.