All Products
Search
Document Center

Quick BI:Joins and Merges

Last Updated:Mar 31, 2026

Quick BI supports single-table and multi-table models and lets you join or merge multiple tables. This topic describes how to build a physical model.

Prerequisites

You have created a dataset. For more information, see Create a dataset.

Background information

Canvas layers

Quick BI data modeling supports a two-layer canvas architecture. The first layer, the relational model canvas, is for building a logical relationship model. The second layer, the physical model canvas, is for building the physical data structure. This layered approach separates the logical semantic layer from the physical modeling layer, which improves the data model's clarity. You can also choose the layer that best fits your needs to perform flexible and complex data modeling.

Relational model canvas

Physical model canvas

image

image

Joins

Quick BI supports left joins, right joins, inner joins, and full joins. The following examples use a student table and a course grade table to illustrate the four join types.

image
Note

These diagrams illustrate the concepts. In an actual join, the original columns of the joined tables are retained.

Merges

Quick BI supports merging data tables. The following examples use provincial sales data to illustrate three scenarios.

image

Limitations

  • Joining and merging tables from different data sources is available only in the Professional Edition.

  • Cross-source joins and merges require enabling extraction acceleration with the Quick Engine. For a list of data sources that support this feature, see Data source feature list.

  • MySQL data sources do not support full joins.

  • A model supports up to five levels of joins (five join nodes). There is no limit on the number of joins at each level.

  • You can merge a maximum of five tables.

  • For API data sources, joins and merges are supported only for data sources in extraction mode. The direct connection mode supports only single-table modeling.

Create a physical model

If you decide to use a physical model, do not build the model directly on the relational model canvas. After you drag the first table onto the canvas, click the image icon next to the logical table and select Enter Physical Canvas, or double-click the logical table to enter the physical model canvas. Then, you can configure multi-table joins and merges.

  1. Click the image icon next to the logical table and select Enter Physical Canvas, or double-click the logical table to enter the physical model canvas.

    image

  2. The data source of the current logical table is selected by default, but you can change it manually.image

  3. In the data table list on the left, you can hover over a target data table and click the image icon to view the table details.

    image

    Hover over a target data table and click the image icon to copy the table name.

  4. Drag a second data table to the canvas to join or merge it. You can also create a table using custom SQL.

  5. You can view the Table Details.

    image

  6. On the Table Details page, you can select the fields that you want to include.

    image

  7. If you no longer need the data table, you can Delete it.

    image

Join tables

Procedure

  1. Enter the physical model canvas.

  2. Select or create the tables to join.

    You can join a data table with another data table, a data table with a table created from SQL, or two tables created from SQL.

    Note

    For more information about editing SQL statements, see Use custom SQL.

    1. Join two data tables

      On the dataset edit page, drag the data tables to the canvas as shown in the following figure.

      image

    2. Join a data table with a table created from SQL

      16

      1. Double-click or drag a data table to the canvas.

      2. Double-click or drag Create Table with SQL to the canvas.

      3. In the SQL editor, enter the SQL statement, click Run, and then click Confirm Edit to create the table.

    3. Join a table created from SQL with a data table

      17

      1. Click Create Dataset with SQL, enter the SQL statement, click Run, and then click Confirm Edit to create the table.

      2. Double-click or drag a data table to the canvas.

    4. Join two tables created from SQL

      15

      1. Click Create Dataset with SQL, enter the SQL statement, click Run, and then click Confirm Edit to create the table.

      2. Double-click or drag Create Table with SQL to the canvas.

      3. In the SQL editor, enter the SQL statement, click Run, and then click Confirm Edit to create the table.

  3. Select the fields you want to include based on your business needs.

    image

  4. In the New Join panel, configure the data join.

    image

    1. Select a join type: left join, right join, inner join, or full join.

      Note

      MySQL data sources do not support full joins.

    2. Set the join keys.

      1. The join operator is = by default. You can also set it to ≠, >, >=, <, or <=.

        image

      2. You can click Add Join Key to add multiple join keys.

        image

      3. You can Delete a join key.

        image

      4. You can Clear All Join Keys.

        image

  5. Click Complete and Go to Data Processing to go to the data processing page.image On the data processing page, you can click Model Configuration in the left-side navigation pane or click Source Table -> Model Details to return to the Model Configuration page. For more information about operations on the data processing page, see Create a dataset.image You can click the join icon on the canvas to view the join relationship.image If a node is no longer needed, click the image icon on the right side of the node and select Delete.image

    Note

    You can delete only the last node in the model.

Customize join conditions

When you configure join conditions, you can create a calculated field to use as a join key.

  1. When selecting a join key, choose Create custom calculation from the drop-down list.image

  2. Enter the field expression and click OK.image

  3. After you click OK, the new field expression appears as a join key.image

  4. You can also edit the custom calculation.image

Pre-join filtering

When creating a join, you can apply separate filter conditions to each table. The filtering is performed before the join operation.image

  1. Click the image icon to the right of the table you want to filter.

  2. Set the filter conditions.image

  3. Click OK to finish setting the pre-join filter conditions.image

Cross-source join

If your required data tables are in different data sources, you can use a cross-source join to connect them into a single model for analysis.

Note
  • Joining tables from different data sources is available only in the Professional Edition.

  • Cross-source joins require you to enable extraction acceleration with the Quick Engine. For a list of data sources that support this feature, see Data source feature list.

  1. On the dataset edit page, find the data table in the target database from the data table list and drag it to the canvas.image

  2. Switch the data table list to another target database, find the required data table, and drag it to the canvas.image

  3. Configure the join relationship between the data tables. For detailed instructions, see Procedure in this topic. After you finish, save the dataset.

  4. Click Advanced settings in the top toolbar.

    image

  5. Click Acceleration settings and enable Quick Engine.

    image

  6. After you enable the Quick Engine, you must configure its parameters. For configuration details, see Use extraction acceleration.image

  7. Click Save to complete the extraction acceleration configuration.

Merge tables

Merging combines information from different data sources or data tables into a single dataset, which makes analysis, processing, and reporting easier.

Note

After tables are merged, they can be treated as a single entity and joined with other tables. When you join a merged result, calculated field and pre-join filtering are not supported.

Procedure

  1. Enter the physical model canvas and perform the merge operation.

    199

    If a logical table contains only a single table, you can also merge tables directly on the relational model canvas.

    198

  2. Select or create the tables to merge.

    You can merge a data table with another data table, a data table with a table created from SQL, or two tables created from SQL.

    Note
    • For more information about editing SQL statements, see Use custom SQL.

    • You can merge a maximum of five tables.

    The following example shows how to merge a data table with a table created from SQL:

    18

    1. Double-click or drag a data table to the canvas.

    2. Drag Create Table with SQL below the table you want to merge it with.

    3. In the SQL editor, enter the SQL statement, click Run, and then click Confirm Edit to create the table.

  3. Configure the table merge.

    image

    1. Fields with the same name and data type are automatically matched.

    2. You can click a field box and select a different field from the drop-down list to manually adjust the matching.

      Note

      The drop-down list shows only fields of the same data type.

      image

    3. Select the fields you want to include based on your business needs.

      image

  4. After you configure the table merge, click Complete and Go to Data Processing to finish the configuration and go to the data processing page.

    image

    For more information about operations on the data processing page, see Create a dataset.

Cross-source merge

When the data tables you need are stored in different data sources, you can use a cross-source merge to combine them into a single model for analysis. The following steps describe how to perform a cross-source merge:

Note
  • Merging tables from different data sources is available only in the Professional Edition.

  • Cross-source merges require you to enable extraction acceleration with the Quick Engine. For a list of data sources that support this feature, see Data source feature list.

  1. On the dataset edit page, find the data table in the target database from the data table list and drag it to the canvas.image

  2. Switch the data table list to another target database, find the required data table, and drag it to the canvas.

    image

  3. Configure the merge relationship between the data tables as needed. For detailed instructions, see Configure the table merge in this topic. When finished, click Complete and Go to Data Processing to go to the data processing page, and then Save the dataset.

  4. Click Advanced settings in the top toolbar.

    image

  5. Click Acceleration settings and enable Quick Engine.

    image

  6. After you enable the Quick Engine, you must configure its parameters. For configuration details, see Use extraction acceleration.image

  7. Click Save to complete the extraction acceleration configuration.

Switch data tables

If you need to use a different data table, you can switch it on the Table Details page. You can switch to a table from the same data source or from a different one.

Usage notes

  • You cannot switch data tables for the following data source types:

    • Data sources created with custom SQL

    • File data sources in an exploration space

    • API data sources

    • DingTalk Sheets data sources

    • Lark Sheets data sources

    • Lark Bitable data sources

  • When you switch a data table, fields with the same name are automatically matched. Ensure that the fields in the target table are consistent with those in the original table.

  • If the data source type of the target table is different from that of the original table, check your calculated fields after switching. If extraction acceleration is configured, you must reset it.

Procedure

  1. On the Table Details page, click Switch Data Table.image

  2. On the Switch Data Table page, select a data source and a data table.

    image

  3. Click OK.

  4. In the confirmation dialog that appears, click OK.

    image