Insights | Joining data sets | II_004

In this tutorial, we'll take a look at how to link data within your standalone data tables within your platform.

For example, in this case we wish to display the name of each product ordered and the customer that ordered it.

These two pieces of data do not exist in the same data set, so we need to link data sets to achieve this.

This example will require the linking of 4 data sets:

  • Order

  • Orderline

  • Customer

  • Product

  1. 1. Click on New

    Click on New
  2. 2. Click on Question

    Click on Question
  3. 3. Click on Raw Data…

    Click on Raw Data…
  4. 4. Click on orderline

    Select the first data set as we've seen in previous tutorials.

    Click on orderline
  5. 5. Refine displayed column list

    You can choose the columns of this data set to be displayed in the final visual. This helps to reduce the sheer amount of data being displayed, particularly with linked data sets.

    Refine displayed column list
  6. 6. Click the Join data icon

    We can select another data set to link our already selected data set to.

    Click the Join data icon
  7. 7. Click on product

    Click on product
  8. 8. Identify matching columns

    When joining two data sets, you will need to identify a column in each set which has matching data.

    In this case, for example, we can link the product_id column of the orderline table to the id column of the product table.

    Identify matching columns
  9. 9. Select columns to display

    You can again select which columns need to be included in the final data.

    Select columns to display
  10. 10. Check name

    In our case, we wish to see the name of the product in the final table.

    Check name
  11. 11. Click the Join data icon

    Multiple data sets can be linked together, you are not limited to two.

    Click the Join data icon
  12. 12. Type "order"

    Next, we will select the order table, where we can identify the link between the orderline and the order in which it was part of.

    This will eventually help us identify the customer, which is associated with the order.

    Type "order"
  13. 13. Click on order

    Click on order
  14. 14. Identify identical columns from both data sets

    Identify identical columns from both data sets
  15. 15. Refine columns to display

    Refine columns to display
  16. 16. Click on Join data

    Click on Join data
  17. 17. Click on customer

    Finally, we will connect the customer table

    Click on customer
  18. 18. Form a link between column in the tables

    Here, we are linking the customer_id column in the order table, to the matching id column in the customer table.

    Form a link between column in the tables
  19. 19. Select column to display

    Select column to display
  20. 20. Check email

    Check email
  21. 21. Click on Visualize

    In my example, I have also added a filter to only show details from one Storefront.

    Click on Visualize
  22. 22. A single table is displayed, combining data from multiple data sets

    A single table is displayed, combining data from multiple data sets