Handling Match Failure in Join

  • Last update:  2024-03-26
  • Overview

    Background

    When you perform Join, if the merge basis fields of the two tables are different, the match will fail. The values of the fields that can be successfully merged must be the same.

    However, in practical use, you may often encounter situations where there are slight differences in the fields of the two tables, which requires us to handle the field values to merge the tables successfully.

    Implementation Method

    Use the Create Merge Calculation function to process the merge bases.

    This function is only supported in V6.0.5 and later versions.

    Example One

    You may wonder how to merge Sales Volume and Store Number of the cities into one table.

    The merge basis field City in the right table has an extra word City compared to the right table, which causes the matching to fail. In this case, you can solve the problem with the following method.

    Download the example data Example.rar and upload it to the analysis subject.

    Join

    1. Go to the editing page of Store Number and click Join. Perform the left and right merge with the Sales Volume table, as shown in the following figure.

    2. Since the City field in the Sales Volume table can not be matched with the City field in the Store Number table, you need to create an auxiliary merge basis field.

    Click the City field of the Sales Volume and select Create Merge Calculation from the drop-down list, as shown in the following figure.

    3. Enter the formula City+" City", as shown in the following figure.

    4. The City fields in these two tables can be matched after the process.

    Example Two: Field Types Mismatch

    Two tables utilize the Region ID field as the merge basis to perform the left and right merge. However, Region ID in one table is a text field, while it in another is a value one.

    In this case, you can also use Create Merge Calculation.

    1. Open the Example_1 Table and select Create Merge Calculation, as shown in the following figure.

    2. Convert Region ID to a text field.

    3. The two tables can be successfully merged after the process.

    附件列表


    主题: Adding and Editing Data
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy