反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Splicing different columns of data

  • Recent Updates: May 10, 2022
  • 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.

    Attachment List


    Theme: Advanced Data Analyis
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭