Performing a data join

Last modified by Aurelie Bertrand on 2026/06/29 11:14

💡 For more information, you can also watch our video tutorial How to join two data models.

It is possible to join data from several data models.

Data is combined horizontally. Columns from different models are aggregated, provided they have at least one column match, known as a join key.

  1. In the Create a new data model box, click on the Join button in the Other section.
    Join button
    ➡ The Join dialog box is displayed.
    Join
  2. Select the data models you wish to use by clicking the Add button and then choosing Existing.
    Add existing
    The first template selected is the master model.
    You can edit the data models by clicking the Edit button 1734519695667-611.png.
  3. In the Key Columns table, the key columns identified by the software are displayed. Select the key dimension(s) on which the join will be performed. The key dimensions must exist in all the selected models.

If the dimensions have different identifiers in the data models, you can create a join key by clicking the Add a key button

Add key

  1. In the Join type drop-down list, select the type of join you wish to perform:
    • Inner join: a join which only displays rows which have a match in the attached sources;
    • Outer join (1st source): join including rows even if they do not match rows in the joined table. The join includes all rows from the first table cited, even if there are no matches in the joined sources.
  2. Click Next to access the Advanced configuration window.

Example: creation of a join between two tables

You want to create a join between an Excel file containing the names of customers (customers.xls) and a second file containing the sales made for these customers (sales.xls).

  1. Create a Customers data model from the Customers.xls file containing the following data:
Customer IDFirst nameLast nameEmailDate of birthPhone
1NicolasMartinnicolas.martin@yahoo.fr04/02/6801.64.98.56.39
2AurélieRichardaurelierichard@gmail.com04/04/7404.32.17.29.90
3JulienSimonjulien.simon@free.fr05/24/7806.75.96.56.43
4EmilieRouxemilie.roux@yahoo.fr10/20/8002.78.76.98.45
5ElodieMoreauelodie.moreau@gmail.com04/11/6909.89.75.78.76
  1. Create a Sales data model from the Sales.xls file containing the following data:
Customer IDDatePrice Total
206/05/04100,22
107/05/0499,95
307/05/04122,95
305/13/04100,22
405/22/04555,55
607/29/0950
  1. Create a new Join data model.
  2. Add the Sales data model, then the Customers data model.
  3. Check the Customer ID key column, then select the Join type.

Outer join

  • Selecting the Inner Join type

If you create a table based on this new data model, you will obtain the following result:

Customer IDFirst nameLast nameDateSales
1NicolasMartin05/07/200499,95
2AurélieRichard05/06/2004100,22
3JulienSimon05/07/2004122,95
3JulienSimon13/05/2004100,22
4EmilieRoux22/05/2004555,55

The sale made for customer 6 is not referenced because there is no corresponding row in the Customer table.

  • Selecting the Outer join (1st source) type

If you create a table based on this new data model, you will obtain the following result:

Customer IDFirst nameLast nameDateSales
1NicolasMartin05/07/200499,95
2AurélieRichard05/06/2004100,22
3JulienSimon05/07/2004122,95
3JulienSimon13/05/2004100,22
4EmilieRoux22/05/2004555,55
6  29/07/200950

The sale made for customer 6 is referenced this time (the result includes all the lines in the Sales table, even those whose customer ID is not in the Customers file).