Field Cleaning

  • Last update:September 25, 2023
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Preview

    Sometimes, unnecessary characters need to be cleaned from the data, such as brackets surrounding negative numbers, special currency symbols like ¥, and thousands separators in numeric data, as shown in the following figure.

    4.png

    Implementation Method

    Use the LEFT function to extract the first character of each field and compare it with ( to determine whether the number is positive or negative.

    Use the REPLACE function to replace unnecessary characters in each field, such as brackets, currency symbols, and thousands separators.

    Example

    Creating an Analysis Subject

    Log in to the FineBI system as admin, choose My Analysis > Add Analysis Subject to create a subject, and click Edit, as shown in the following figure.

    1.png

    Adding Data

    Click to download sample data: Profit Data.xlsx

    Click , select Local Excel, select the sample data, and click OK, as shown in the following figure.

    2.png

    Adding a Formula Column

    1. Select the sample data table to enter the data editing page.

    2. Add a formula column.

    • Name of the added formula column: New Profit.

    • Formula: IF(LEFT(Profit,1)="(","-"+REPLACE(REPLACE(REPLACE(REPLACE(Profit,"",""),",",""),"(",""),")",""),REPLACE(REPLACE(Profit,"",""),",",""))

    • Field type: Value

    3. After completing the settings, click Save All and Update, as shown in the following figure.

    3.png

    The formula above involves two functions:

    This function allows the system to return the first or first several character(s) in the text, based on the number of characters you specify.

    You can directly use this function to extract the first character of each field and compare it with ( to determine whether the number is positive or negative.

    This function allows the specified character string in the original text to be replaced with a different character string.

    You can directly use this function to replace unnecessary characters in each field, such as brackets, currency symbols, and thousands separators.

    Demonstration

    Click OK. In the added column, brackets are converted to negative signs (-), and currency symbols (¥) and thousands separators are removed, as shown in the following figure.

    4.png

    附件列表


    主题: 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