Concatenating Data from Different Columns

  • Last update:  2022-05-10
  • 1. Overview

    1.1 Expected effect

    Splice the three fields of "Region", "Account Manager" and "Regional Manager" with "/", and remove the last "/", as shown in the figure below:

    Note: the length of the spliced fields is different. If it is empty, it is necessary to remove the last splicing character in the function.

    45.png

    1.2 Realization idea

    Splice with CONCATENATE function.

    The nested function IF add "/" for splicing and segmentation;

    Since the spliced fields have different lengths, it is necessary to use the LEFT and LEN functions to remove the last "/" in each spliced field.

    2. Operation steps

    Sample data: Splicing.xlsx

    2.1 Create self-service dataset

    Add the excel dataset to FineBI, as shown in the following figure:

    46.png

    Click "Add Table" → "Self-Service Dataset" to create a self-service dataset, as shown in the following figure:

    47.png

    Click "selected field" and select all fields under the "Splicing" dataset, as shown in the following figure:

    48.png

    2.2 Splice the field

    Add a new "New Column", name it as "Splicing" and enter the formula:CONCATENATE(Region,IF (ISNULL(Region),"","/"),Regional Manager,IF(ISNULL(Regional Manager),"","/"),Account Manager,IF(ISNULL(Account Manager),"","/")), click "OK", as shown in the following figure:

    49.png

    Note: the fields in the formula box need to be selected by clicking the selection area on the left, and cannot be entered manually.

    2.3 remove the last "/"

    Because the spliced fields have different lengths, you need to use the function to remove the last / of the spliced fields, add a "New Column", name it as "Remove the last one", enter the formula: LEFT(Splicing,LEN(Splicing)-1), and click "OK", as shown in the following figure:

    50.png

    Note: the fields in the formula box need to be selected by clicking the selection area on the left, and cannot be entered manually.

    Name and save the self-service dataset.

    2.4 Effect view

    See Section 1.1 of this file for details.

    附件列表


    主题: Advanced Data Analysis
    Previous
    Next
    • 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