Available in real-time and big data analytics.
The Filter by Expression tool filters features by an attribute expression using ArcGIS Arcade. Each feature is evaluated by the defined expression. Features that the expression evaluates as true are retained.
Examples
The following are example use cases for the tool:
- A real-time analytic uses the Filter by Expression tool to retain only the incoming records from a feed in which $feature.horizontal_accuracy < 15.
- A real-time or big data analytic uses the Filter by Expression tool to retain only features in which $feature.description == 'Excellent Condition'.
Usage note
Filter data by defining Arcade expressions.
Parameters
The following are the parameters for the tool:
Parameter | Description | Data type |
---|---|---|
Input Layer | The layer in which features are filtered. | Features |
Expression | An attribute expression that evaluates features to filter the incoming data. The expression is configured in the Arcade expression builder, accessed by clicking Configure an Arcade Expression. All feature records are evaluated. Records that result true are retained, and false results are discarded. | String (Arcade expression) |
Output layer
The Filter by Expression tool does not alter incoming features; the output layer contains the same fields and attribute values as the incoming features.