---
title: Group RUM Events
description: >-
  Group and aggregate RUM events by fields to analyze patterns, measure
  performance, and gain insights into user behavior.
breadcrumbs: Docs > RUM & Session Replay > RUM Explorer > Group RUM Events
---

# Group RUM Events

## Overview{% #overview %}

Real User Monitoring (RUM) events are valuable both individually and collectively. The search query contains information to aggregate a subset of events.

{% image
   source="https://datadog-docs.imgix.net/images/real_user_monitoring/explorer/group_into_fields-2.40f413458b78d879267cd62b2fdfd1a3.png?auto=format"
   alt="Group into fields section of the Search query" /%}

Your selection of fields to group, aggregate, and measure your events are preserved as you switch between visualization types.

## Aggregate by fields{% #aggregate-by-fields %}

All RUM events that match your filter query are aggregated into groups based on the value of one or several event facets. You can extract the following measures in addition to the aggregates:

- Count of events per group

  {% image
     source="https://datadog-docs.imgix.net/images/real_user_monitoring/explorer/group-count-of-events.7cee020c5beb99a4a11522206f8df1a7.png?auto=format"
     alt="Group by count of events" /%}

- Unique count of coded values for a facet per group

  {% image
     source="https://datadog-docs.imgix.net/images/real_user_monitoring/explorer/group-unique-count-coded-values-2.afc3d2014efba1de0aed8396a8f113ec.png?auto=format"
     alt="Group by unique count of coded values" /%}

- Statistical operations (such as minimum, maximum, average, and percentiles) on a facet's numerical values per group

  {% image
     source="https://datadog-docs.imgix.net/images/real_user_monitoring/explorer/group-statistical-operations-2.0964a5017737c37ebb41e08e0164d360.png?auto=format"
     alt="Group into fields using statistical operations" /%}

Individual events with multiple values for a single facet belong to that number of aggregates. For example, a RUM event with the `country:france` and `browser:chrome` attributes are counted once in the `country:france` aggregate and once in the `browser:chrome` aggregate.

The **Group into fields** aggregation supports one dimension for the [Top list](https://docs.datadoghq.com/real_user_monitoring/explorer/visualize#top-list) visualization and up to three dimensions for the [timeseries](https://docs.datadoghq.com/real_user_monitoring/explorer/visualize#timeseries), [list](https://docs.datadoghq.com/real_user_monitoring/explorer/visualize#lists) and [table](https://docs.datadoghq.com/real_user_monitoring/explorer/visualize#nested-tables) visualizations. When there are multiple dimensions, the top values are determined based on the first dimension, then the second dimension within the top values of the first dimension, then the third dimension within the top values of the second dimension, and so on.

## Further Reading{% #further-reading %}

- [Search for your events](https://docs.datadoghq.com/real_user_monitoring/explorer/search/)
