Skip to main content

Summarize Attributes (Real-time) (Beta)

The Summarize Attributes tool summarizes field values to generate a summary table. The resulting output table displays the count of summarized features and any additional specified statistics.

Workflow diagram

Summarize Attributes workflow from input features through state store calculations to an output table

Examples

Managing assets and sensor data can be challenging with high-frequency, real-time observations. Although individual data points show what an asset or sensor is doing at a specific moment, analyzing rolling subsets of incoming data can provide a broader view of conditions and trends over time.

The following are example use cases for the tool:

  • Mean, min, max, and standard deviation for the last 10 vehicle speed observations by track ID can help identify erratic driving or traffic slowdowns.

  • Average temperature, vibration, and pressure readings over the last five minutes by track ID can help detect hazardous conditions.

  • Average processing time, max wait time, and total facility gate event count across the last 100 events can help power a live operations dashboard.

  • Min, max, and average air quality index values over the last 10 minutes for an environmental sensor can provide an overall view of air health.

Usage notes

Note the following when working with the tool:

  • Inputs can be a tabular layer or a layer with geometry (points, lines, or areas).

  • This tool provides the following scope choices for calculations with the State Mode parameter (choose only one mode at a time):

    • The Track-based mode maintains rolling summary statistics separately for each track ID, using the Track ID field defined in the input schema.

    • The Summary set mode maintains one rolling summary across all incoming features, without separating observations by track ID.

  • To calculate statistics from previous observations, the tool temporarily retains recent observations in a state store. The Calculation Mode parameter determines how much data is retained and used in each rolling calculation (choose only one mode at a time):

    • The History Depth mode retains and calculates statistics from a specified number of observations, including the current observation.

    • The Time Window mode retains and calculates statistics from observations within a specified time window, using each observation's event start time.

  • When Track-based mode is selected, the input must have a Track ID field defined. The tool uses the Track ID field from the input schema to maintain separate rolling summaries for each track.

  • This tool is a tabular analysis tool, not a spatial analysis tool. You can use this tool with spatial data. However, the result is tabular. For more information, refer to the Output table section.

  • The output table of this tool always includes a count of the number of features that the tool has summarized. If Count is also selected for a summary field, the output includes an additional field-specific count.

  • Use the Summary fields parameter to calculate additional statistics. The available summary fields statistics depend on the field type you are summarizing.

    • A string attribute field can use the Any, Count, and Count (distinct) statistics.

    • A numeric attribute field can use the Any, Count, Count (distinct), Sum, Square Sum, Min, Max, Range, Variance, and Standard Deviation statistics.

    • A date attribute field can use the Any, Count, Min, Max, and Range statistics.

How the tool works

The Summarize Attributes tool first reviews the Calculation Mode parameter and stores incoming real-time data in a state store according to the setting chosen.

  • For the History Depth mode, the tool retains up to the specified number of recent observations in the state store. The tool recalculates statistics as it processes each feature; early output records use the observations available so far until the tool reaches the history depth value.

  • For the Time Window mode, the tool runs calculations immediately with any data available in the state store.

The tool then runs calculations based on the State Mode parameter.

  • For the Track-based mode, the tool runs calculations on subsets of data organized by the input Track ID field.

  • For the Summary set mode, the tool runs calculations on the entire dataset in the state store, as if the entire dataset were under a single Track ID field.

The following sections describe equations, calculations, parameters, and the output table.

Equations

Variance is calculated using the following equation:

\(s^2 = \left( \frac{\sum_{i=1}^{N} x_i^2 - N\bar{x}^2}{N-1} \right)\)

Standard deviation is calculated as the square root of the variance.

Calculations

The Summarize Attributes tool calculates rolling summary statistics from observations stored in the tool state store. For example, a logistics team can use stop-completion events from delivery vehicles to summarize how many packages were delivered at recent stops, such as businesses, apartment buildings, or pickup locations.

Table showing stop-completion events with event time, vehicle ID, and packages delivered

Table 1: Sample stop-completion events showing packages delivered at each stop.

When the State Mode parameter is set to the Track-based mode, the Calculation Mode parameter is set to the History Depth mode, and the History Depth mode is set to 2, the tool summarizes the two most recent stops for each vehicle. This can help answer questions such as how many packages each vehicle delivered during its two most recent stops.

Table showing stop count and total packages delivered summarized for each vehicle's two most recent stops

Table 2: Track-based history depth output showing stop counts and total packages delivered during the two most recent stops for each vehicle.

In table 2, each row shows the sum of packages delivered for the two most recent stops of the vehicle in that event. These values are calculated by referencing the packages delivered at each stop in table 1:

  • At 7/1/2026 9:47 a.m., only one stop has occurred for VAN-101 at 9:47 a.m., so COUNT remains 1 and packagesDelivered_Sum is 6.

  • At 7/1/2026 9:52 a.m., only one stop has occurred for VAN-205 at 9:52 a.m., so COUNT remains 1 and packagesDelivered_Sum is 4.

  • At 7/1/2026 9:58 a.m., using VAN-101's two most recent stops at 9:47 a.m. and 9:58 a.m., COUNT remains 2 and packagesDelivered_Sum is 6 + 8 = 14.

  • At 7/1/2026 10:05 a.m., using VAN-205's two most stops at 9:52 a.m. and 10:05 a.m., COUNT remains 2 and packagesDelivered_Sum is 4 + 5 = 9.

  • At 7/1/2026 10:19 a.m., using VAN-101's two most recent stops at 9:58 a.m. and 10:19 a.m., COUNT remains 2 and packagesDelivered_Sum is 8 + 7 = 15.

  • At 7/1/2026 10:24 a.m., using VAN-205's two most recent stops at 10:05 a.m. and 10:24 a.m., COUNT remains 2 and packagesDelivered_Sum is 5 + 3 = 8.

When the State Mode parameter is set to the Summary set mode, the Calculation Mode parameter is set to the Time Window mode, and the Time Window mode value is set to 30 minutes, the tool summarizes all stops that occurred within the rolling time window. This can help answer questions such as how many stops occurred and how many packages were delivered by the fleet during the last 30 minutes.

Table showing stop count and total packages delivered summarized across the fleet within a rolling 30-minute time window

Table 3: Summary set time window output showing stop counts and total packages delivered across the fleet within a 30-minute window.

In table 3, each row shows the count and sum of packages delivered by the entire fleet within the rolling 30-minute window. These values are calculated by referencing the event times and packages delivered at each stop in table 1:

  • At 7/1/2026 9:47 a.m., only the 9:47 a.m. event has occurred, so COUNT remains 1 and packagesDelivered_Sum is 6.

  • At 7/1/2026 9:52 a.m., the 9:47 a.m. and 9:52 a.m. events fall within the last 30 minutes, so COUNT remains 2 and packagesDelivered_Sum is 6 + 4 = 10.

  • At 7/1/2026 9:58 a.m., the 9:47 a.m., 9:52 a.m., and 9:58 a.m. events fall within the last 30 minutes, so COUNT remains 3 and packagesDelivered_Sum is 6 + 4 + 8 = 18.

  • At 7/1/2026 10:05 a.m., the 9:47 a.m., 9:52 a.m., 9:58 a.m., and 10:05 a.m. events fall within the last 30 minutes, so COUNT remains 4 and packagesDelivered_Sum is 6 + 4 + 8 + 5 = 23.

  • At 7/1/2026 10:19 a.m., the 9:47 a.m. event does not fall within the 30 minutes window and is dropped, but the 9:52 a.m., 9:58 a.m., 10:05 a.m. and 10:19 a.m. events fall within the last 30 minutes, so COUNT remains 4 and packagesDelivered_Sum is 4 + 8 + 5 + 7 = 24.

  • At 7/1/2026 10:24 a.m., the 9:47 a.m. and 9:52 a.m. events do not fall within the 30 minutes window and are dropped, but the 9:58 a.m., 10:05 a.m., 10:19 a.m., and 10:24 a.m. events fall within the last 30 minutes window, so COUNT remains 4 and packagesDelivered_Sum is 8 + 5 + 7 + 3 = 23.

Parameters

The following table describes the parameters for the tool:

Parameters

Explanation

Data type

Input layer

The input with features that will be summarized.

Features

State Mode

Choose how the incoming features are used for each rolling summary calculation. Choose one of the following:

  • Track-based—Calculate summaries per track ID.

  • Summary set—Calculate summaries for the entire dataset.

String

Calculation Mode

Choose how much data to retain in the state store and use for your rolling calculations. Choose one of the following:

  • History Depth—Retain data by number of observations.

  • Time Window—Retain data within a rolling duration of time.

Only one calculation mode can be selected.

String

History Depth

If you choose the History Depth mode for the Calculation Mode parameter, specify the number of cached observations in the state store.

For example, if you set a state store depth value to 5, each time an observation is processed, summary fields are calculated based on the current observation plus the previous four observations.

In the History Depth mode, this tool waits until the specified number of observations are available in the state store to produce an output.

Integer

Time Window

If you choose the Time Window mode for the Calculation Mode parameter, specify the rolling duration of time to cache observations in the state store. The start time is used to determine which observations to include.

In Time Window mode, this tool begins calculating as soon as data is available in the state store.

String

Summary fields (optional)

The statistics calculated for the specified fields. Available statistics vary based on whether the field is a string, numeric, or date field.

The supported statistics types are as follows:

  • Any—A sample string taken from a field containing string values.

  • Count—Calculates the number of non-null values. It can be used on fields with numeric or string values. The count for [null, 0, 2] is 2.

  • Count (distinct)—Calculates the number of distinct, non-null values. It can be used on fields with numeric or string values. The count distinct result for [null, 4, 3, 4] is 2.

  • Sum—The sum of numeric values in a field. The sum for [null, 1, 3] is 4.

  • Square Sum—Calculates the sum of squared differences of each observation from the overall mean. The sum of squares for [null, 2.2, 3.1, 4.7] is 3.206.

  • Min—The minimum value of a numeric field. The minimum value for [0, 2, null] is 0.

  • Max—The maximum value of a numeric field. The maximum value for [0, 2, null] is 2.

  • Mean—The mean of numeric values. The mean for [0, 2, null] is 1.

  • Range—The range of a numeric field. This is calculated as the minimum value subtracted from the maximum value. The range for [0, null, 1] is 1, and the range for [null, 4] is 0.

  • Variance—The variance of a numeric field in a track. The variance for [1] is null, and the variance for [null, 1,1,1] is 1.

  • Standard Deviation—The standard deviation of a numeric field. The standard deviation of [1] is null, and the standard deviation for [null, 1,1,1] is 1.

String

Output table

The tool output is a table containing summarized attributes specified by the Summary fields (optional) parameter, Track ID fields when the Track-based mode is selected, and event time fields that can support downstream joins.

To reduce state store size, geometry and other input fields are not preserved from the input and are not included in the output table. These fields can be rejoined using the Join Features tool.

If a spatiotemporal feature layer is used as an output type, both a spatiotemporal feature layer and a map image layer are created. If an ArcGIS Online hosted feature layer is used as an output type, the output table is a Table (hosted).