Applies to:Kyvos Enterprise Kyvos Azure MarketplaceKyvos AWS Marketplace Kyvos Applies to: Kyvos Enterprise Kyvos Cloud (SaaS on AWS) Kyvos AWS Marketplace
Kyvos Azure Marketplace Kyvos GCP Marketplace Kyvos Single Node Installation (Kyvos SNI) Kyvos 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 | |||||
---|---|---|---|---|---|
| |||||
| |||||
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:
From the Toolbox, select Relationships.
Click the Action menu ( ⋮ ) at the top of the Relationships column and
...
click Add Relationship.
Or type a name of a file or folder to search for in the Search box.In the File column, drag more than
...
one file onto the relationships workspace.
In the file, click the field that you want to map.
Drag a
...
field to map it to a field in
...
a different node to create a relationship.
Click the Line to view
...
the relationship details.
Specify the bridge node using the Node Type field in the Properties pane.
...
Define the relationship between bridge and fact and bridge and dimension, as shown in the following figure.
...
...
...
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
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:
Add a third node where each record contains the primary keys of the two tables you will join.
Drag
...
a field from each of the first two nodes to map
...
them to a field in the third
...
node to create the relationships.
Select that third node, then view its properties in the Properties panel.
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.
From the Toolbox, click Semantic Models.
Select a semantic model from the list.
Click the Refine tab, to confirm you are looking at the Physical View.
On the Dimensions column, click the + icon.
In the Dimension Properties, specify the Name for the dimension.
Select the Bridge option from the Type drop-down list.
Select the Bridge Node from the drop-down list.
...
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:
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.Click to select a field.
Select the target node from the list and click to select a field.
Click Apply.
...
Related topics