Documentation

Filter Values

The Filter Values component allows you to filter data based on specified criteria, supporting various comparison operators and filter conditions.

Filter Values Component

Filter Values interface and configuration

Component Inputs

  • Input Data: Data to be filtered

    The input data for filtering

  • Filter Key: route

    The key to filter on

  • Filter Value: CIMP

    The value to filter by

  • Comparison Operator: equals

    The operator for comparison

Component Output

  • Filtered Data: The filtered dataset

    Data that matches the filter criteria

Implementation Example

const filterValues = { inputData: [ { route: "CIMP", value: 100 }, { route: "OTHER", value: 200 }, { route: "CIMP", value: 300 } ], filterKey: "route", filterValue: "CIMP", comparisonOperator: "equals" }; // Output: // { // filteredData: [ // { route: "CIMP", value: 100 }, // { route: "CIMP", value: 300 } // ] // }

Best Practices

  • Verify filter key exists in the data
  • Use appropriate comparison operators
  • Handle case sensitivity appropriately
  • Consider data type compatibility