Checking If a Field Contains a String

  • Last update:  2022-04-15
  • 1. Overview

    1.1 Expected effect

    Check the values in the fields and group them according to the field values, display A if the field contains A and B if the field contains B. For example, "Province or City" containing "Province" is displayed as 1, as shown in the following figure.

    1.png

    1.2 Implementation idea

    Use the Find function to determine if the value exists in the field, and the IF function to make a conditional determination.

    2. Example

    Use Demo Data"Regional Data Analysis".

    2.1 Add Self-Service dataset

    Create the Self-Service dataset and select all the data, as shown below.

    2.png

    2.2 Add new column

    New return value column "Test", if the field contains "Province", it returns a 1, thenFind("Province",Province or City) in the IF function logical value of true, for conditional judgment, contains the display for "1", otherwise display for "0", as shown below.

    3.png

    2.3 Effect view

    As shown in the figure below.

    4.png

    附件列表


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