Data Filtering

  • Last update: March 18, 2025
  • Overview

    Version

    FineDataLink Version

    Functional Change

    4.0.19

    Added a Data Filtering operator, allowing you to filter data.

    4.0.28

    Allowed you to get data whose value consisted entirely of spaces through filtering by selecting the Null operator.

    Application Scenario

    • Data contains null values, and you want to filter out the null data.

    • The data table contains product contract records from multiple years and you want contract data from 2017 only.

    You can use the Data Filtering operator to achieve that.

    Function Overview

    You can use the Data Filtering operator to obtain the required data through filtering, as shown in the following figure.

    Notes

    The date to be filtered should be in the yyyy-mm-dd HH:mm:ss format. If the data to be filtered is in the yyyy-mm-dd format, transform it to data in the yyyy-mm-dd HH:mm:ss format or use parameters.

    Function Introduction

    Setting Item Description

    Setting Item

    Description

    Field

    • Selectable fields include all fields from upstream nodes and operators.

    • You can search for fields.

    • Field types are divided into text, value, time, and others. Types that cannot be recognized as the  first three types are considered as others.

    Operator

    The supported operator varies with field types.

    Fixed value input box

    The value input box such as the date input box and the string input box varies with operators, 

    where you can enter ${Parameter name} to reference a parameter.

    You do not need to enclose the value in the fixed value input box in single or double quotes. If 

    you select In or Not In as the operator, separate multiple values by comma.

    The Contain operator corresponds to the SQL LIKE clause and supports single-value filtering     only. For multi-value filtering, use the In and Not In operators.

    For example

    Remark:

    • You can add multiple conditions/formulas.

    • A new expression is joined with existing expressions by the logical AND operator by default. You can click the logical operator button to switch the operator to OR.

    Operator Description

    icon

    Note:


    1. In cases where the field type is either text or value, Field Setting offers an In operator, which encompasses both the Equal to operator (=) and the In operator ().

    2. When you select the Null operator, you can get data with empty values, null values (case-insensitive), and empty strings ("") through filtering. Starting from FineDataLink 4.0.28, you can additionally get data with space values.

    3. Starting from FineDataLink 4.1.1, the conditional judgment logic has been standardized. For details, see Judgment Logic Description

    Field Type

    Selectable Operator

    Text

    In and Not in

    Contain, Not Contain, Begin with, End with, Not Begin with, Not End with, Null,   and Not Null

    Others

    Equal to and Not Equal to

    Value

    In and Not in

    Between, Not Between, Greater Than, Less Than,   Greater Than or Equal to, Less Than or Equal to, Null, and Not Null

    Date

    Between and Not Between

    Before, After, Equal to, Not Equal to,   Null, and Not Null

    Example

    You can download the example data:SOrder2.xls

    This document aims to filter data where the OrderDate is 2011 and the Freight is greater than 100.

    Data Input

    Create a scheduled task.

     

    Add a Data Transformation node.

     

    Click the Data Transformation node, add a DB Table Input operator, and get data in the SOrder2 table.

     

    Field Setting

    Since the fields in this table are all of the text type, you need to change date-related fields and value-related fields to date-type and value-type fields, respectively.

    iconNote: Skip this step if the field types are correct.

    Add a Field Setting operator, connect it to the DB Table Input operator, and modify the field type.

     

    Data Filtering

    Set filter conditions to fetch data where the OrderDate is 2011 and the Freight is greater than 100.

     

    Click Data Preview to view the fetched data, as shown in the following figure.

     

    Data Output

    Add a DB Table Output operator to output the data after filtering.

     

    Running the Task

    Click Run in the upper right corner. After successful execution, a message indicating successful execution will be displayed in Log.

     

    You can view the data obtained through filtering in the OrderAfter20110101 table.

     

    Best Practice

    Data Filtering enables fuzzy query and filtering of fields without complex SQL statements, improving data processing efficiency. For details, see.Fuzzy Field Querying/Filtering

    附件列表


    主题: Data Development - Scheduled Task
    • Helpful
    • Not helpful
    • Only read

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

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

    不再提示

    8s后關閉

    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