Skip to content

Filter on Numerical Range

Description

This activity filters the values in the specified columns based on a defined numerical range.

Input

Data only

Output

Transformed data

Configuration Fields

  • Columns
    Specifies the columns to filter based on range.

  • Minimum Value
    Defines the minimum value for filtering.

  • Maximum Value
    Defines the maximum value for filtering.

  • Actions
    Specifies the actions for rows outside the range

    • Keep Matching Rows Selects only rows within the range.
    • Remove Matching Rows Removes rows within the range.
    • Flag Rows Flags rows within the range (1 for match, 0 otherwise).
    • Clear Content of Matching Cells Clears values within the range.
    • Clear Content of Non-Matching Cells Clears values outside the range.
  • FlagRows Action (Rendered only when the action is Flag Rows)
    Defines the pattern to flag rows

    • Flag if Any Column Matches Flags rows if any specified column value matches.
    • Flag if All Columns Match Flags rows if all specified column values match.

    -FlagRowsColumnName
    Name of the new flag column (rendered only when the action is Flag Rows).


Sample Input Data

column_1column_2
5data1
10data2
25data3
50data4
75data5

Sample Configuration

alt text


Sample Output 1 (Keep Matching Rows Action)

column_1column_2
10data2
25data3
50data4

Sample Output 2 (Remove Matching Rows Action)

column_1column_2
5data1
75data5

Sample Output 3 (Flag Rows Action Flag if Any Column Matches)

column_1column_2range_flag
5data10
10data21
25data31
50data41
75data50

Sample Output 4 (Clear Content of Matching Cells)

column_1column_2
5data1
data2
data3
data4
75data5

Sample Output 5 (Clear Content of Non-Matching Cells)

column_1column_2
data1
10data2
25data3
50data4
data5