Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Applies to: Image Removed (tick) Kyvos Enterprise   Image RemovedKyvos Cloud (Managed Services (tick) Kyvos Cloud (SaaS on AWS)   Image Removed (tick) Kyvos Azure AWS MarketplaceImage Removed

(tick) Kyvos AWS Marketplace  Image RemovedKyvos Azure Marketplace   (tick) Kyvos GCP Marketplace (tick) Kyvos Single Node Installation (Kyvos SNI)  Image RemovedKyvos Free (Limited offering for AWS)

...

A many-to-many relationship occurs when multiple records in one table are associated with various records in another table. For example, a many-to-many relationship exists between customers and accounts when customers have multiple accounts, and accounts can be opened jointly by many customers.

To provide insights into data, you can break the many-to-many relationship into two one-to-many relationships by using a third table, called a bridge table. Each record in a join table includes a match field that contains the value of the primary keys of the two tables it joins. (In the join table, these match fields are foreign keys.) These foreign key fields are populated with data as records in the join table are created from either table it joins.

Panel
panelIconIdatlassian-info
titlepanelIcon:info:
bgColor#FFFAE6

Important

While designing a many-to-many relationship, you must create a unidirectional relation from Fact > Bridge > Dimension or Dimension > Bridge > Fact.

To create a many-to-many relationship, perform the following steps: 

  1. From the Toolbox, select Relationships.

  2. Click the Action menu (  ) at the top of the Relationships column and

...

  1. click Add Relationship.
    Or type a name of a file or folder to search for in the Search box.

  2. In the File column, drag more than

...

  1. one file onto the relationships workspace.

  2. In the file, click the field that you want to map.

  3. Drag a

...

  1. field to map it to a field in

...

  1. a different node to create a relationship. 

  2. Click the Line to view

...

  1. the relationship details.

  2. Specify the bridge node using the Node Type field in the Properties pane.

...

  1. Define the relationship between bridge and fact and bridge and dimension, as shown in the following figure.

...

Image Removed

...

...

Panel
panelIconIdatlassian-note
panelIcon:note:
bgColor#DEEBFF

Note

To use any of the facts or dimensions from a many-to-many dataset, you must create a bridge dimension in the cube Physical view.

Adding bridge dimension for many-to-many relationships

To add a bridge dimension for many-to-many relationships, perform the following steps: 

  1. Add a third node where each record contains the primary keys of the two tables you will join.

  2. Drag

...

  1. a field from each of the first two nodes to map

...

  1. them to a field in the third

...

  1. node to create the relationships

  2. Select that third node, then view its properties in the Properties panel.

  3. Under Node Type, select Bridge.

Adding bridge dimension for many-to-many relationships from semantic model designer

To add a bridge dimension for many-to-many relationships while viewing a semantic model, perform the following steps.

  1. From the Toolbox, click Semantic Models.

  2. Select a semantic model from the list.

  3. Click the Refine tab, to confirm you are looking at the Physical View.

  4. On the Dimensions column, click the + icon.

  5. In the Dimension Properties, specify the Name for the dimension.

  6. Select the Bridge option from the Type drop-down list.

  7. Select the Bridge Node from the drop-down list.

...

  1. Image Added
  2. Click Save

Properties

Selecting a node shows its properties in the Properties panel. You can specify the node to be Fact, Dimension,or Bridge using the corresponding option from the Node Type area. 

...

To use the properties, perform the following steps: 

  1. In the Properties pane, navigate to the Relationships section, and click Add Relationship
    The source node is the currently selected node. Or you can click the drop-down arrow to view the list and select a different source node.

  2. Click to select a field.

  3. Select the target node from the list and click to select a field.

  4. Click Apply

...

Related topics