Forum Discussion

cingram11's avatar
cingram11
Regular Visitor
1 year ago
Solved

Relationships/Cardinality

Can someone explain what Relationships and Cardinality do in the context of databases or data modeling? What each particular one does? One to one, Many to one, etc.
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi cingram11 ,

    Thank you for reaching out to the Microsoft Fabric Community. Also responses provided by AlexisOlson  and speedramps  offer valuable insights, particularly around the concept of column cardinality and how it affects relationship design.

     

    To add further clarity, in the context of Power BI and data modeling, a relationship defines how two tables are logically connected so that data from one table can filter or aggregate data in another. These relationships are governed by cardinality, which refers to how many rows in one table relate to rows in another.

     

    Common types include one-to-one (1:1), one-to-many (1:M), and many-to-many (M:M). For instance, a one-to-many relationship is often created between a dimension table (e.g., Customers) and a fact table (e.g., Sales), where each customer can have many sales records, but each sale belongs to only one customer.

     

    Column cardinality, as explained earlier, describes the number of distinct values in a column and plays a crucial role in determining the most efficient and correct relationship structure. For a detail information in relationship cardinality in Power BI, please refer to the document below: Model relationships in Power BI Desktop - Power BI | Microsoft Learn

     

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


    Thank you.