Join Tables
Once a table has been added to the data model, it can be linked to other tables to define relationships. You can join tables based on one or more matching fields.
You cannot join from a fact table. You cannot join a table that is already joined with another table.
note
Make sure the Design Graph is visible by hovering over View and selecting Design Graph.
Link tables
| Join type | Description |
|---|---|
| Manually | Create joins between fields by dragging from one table to another in the Design Graph. |
| Suggested tables | Add joins from a dynamically generated list based on joins created manually by an administrator or joins provided in templates. The list updates automatically when new joins are available. |
| On specific tables | Add joins that match a field against a predefined constant, global parameter (##), or global variable (@@). Use this to link tables when values must match a specific code or dimension rather than another table field. |
Join tables manually
- In the Design Graph, select the two tables you want to join.
- Expand each table using the icon in the top right corner.
- Click and hold the field in the first table.
- Drag the field onto the matching field in the second table.
- Repeat the process for any additional fields you want to join.
- On the File tab, click Save Data Model.
Join suggested tables
- In the Design Graph, right-click a table header.
- Select Suggested Joins.
- Select the required joins and click + Add selected joins. The joins are created automatically, and any referenced tables or views are added to the Design Graph.
- On the File tab, click Save Data Model.
tip
Use Delete Selected Joins to remove unwanted suggested joins.
Join tables on specific values
- In the Design Graph, right-click a table header.
- Select Joins on specific values.
- Click Add a Join.
- In From field, select the source field.
- In Operator, choose the appropriate comparison operator.
- In Value, enter a value in single quotes (for example,
'COMP001'), or select a global paramater (##) or global variable (@@). - (Optional) Repeat the process for additional joins.
- Click Ok.
- On the File tab, click Save Data Model.
Change the join type
- In the Design Graph, right-click the arrow representing the join between two tables.
- Select a join option between Left Join andInner Join.
- On the File tab, click Save Data Model.
Delete a join
- In the Design Graph, right-click the arrow representing the join.
- Select Remove Join.
- In the confirmation dialog, click Ok.
- On the File tab, click Save Data Model.