# Grouping Overview

Source: https://userguide.qualytics.io/container/settings/grouping/

Grouping is a fundamental aspect of data analysis, allowing users to organize data into meaningful categories for in-depth examination. With the ability to set grouping on Containers, users can define how data within a container should be grouped, facilitating more focused and efficient analysis.

Let’s get started 🚀

> **Tip: Show me how**
>
> The app can walk you through this. Press `H` on a container's page and pick **Configure Field Grouping**: the walkthrough highlights each step while you do the real work. See [The How-tos Scope](https://userguide.qualytics.io/using-the-platform/web-app/global-search/command-palette/#the-how-tos-scope) for every way to start one.

## Managing a Grouping

**Step 1:** Log in to your Qualytics account and select the source datastore (**JDBC** or **DFS**) from the left menu that you want to manage.

![grouping](https://userguide.qualytics.io/assets/container/identifiers/grouping/datastore-light.png)

**Step 2:** Select Tables (if JDBC datastore is connected) or File Patterns (if DFS datastore is connected) from the Navigation tab on the top.

![table](https://userguide.qualytics.io/assets/container/identifiers/grouping/table-light.png)

**Step 3:** You will view the full list of tables or files belonging to the selected source datastore.

![list](https://userguide.qualytics.io/assets/container/identifiers/grouping/list-light.png)

**Step 4:** Click on the vertical ellipse next to the table of your choice and select **Settings** from the dropdown list.

![settings](https://userguide.qualytics.io/assets/container/identifiers/grouping/settings-light.png)

A modal window will appear for **Table Settings**, where you can manage grouping for the selected table. Use the **Grouping** section to organize fields, with a warning to avoid large row groupings to maintain performance. Add grouping logic via **Group Criteria**.

![window](https://userguide.qualytics.io/assets/container/identifiers/grouping/window-light.png)

## Usage

The `grouping` parameter accepts a list of lists of field names. Each inner list holds the field names in the order that they will be applied as grouping criteria. This flexibility allows users to customize the grouping behavior based on their specific analytical requirements.

### Example

Consider the following examples of `grouping` configurations:

**1** `["store_id"]`: Groups data within the container by the `store_id` field.
**2** `["store_id", "month"]`: Groups data first by `store_id`, then by `month`.
**3** `["store_id", "state"]`: Groups data first by `store_id`, then by `state`.

By specifying different combinations of fields in the `grouping` parameter, users can tailor the grouping behavior to suit their analytical needs.

## Impact on Data Profiles

The grouping configuration has implications for various aspects or Grouping has implications for various aspects.

### Field Profiles

When a Profile operation runs, Field Profiles are produced with filters determined by the `grouping` saved in the container's settings. The Profile operation itself has no grouping input. This means that the profiles generated will reflect the characteristics of data within each group defined by the grouping criteria.

### AI Managed Quality Checks

The AI Managed checks generated by Qualytics AI will also hold the filter defined by the `grouping`. This ensures that data access controls and constraints are applied consistently across different groupings of data within the container.

### AI Managed Quality Check Filters

Quality Check filters, represented as SQL `WHERE` clauses, are set based on the `grouping` saved in the container's settings. This ensures that quality checks are applied appropriately to the data within each group, allowing for comprehensive data validation and quality assurance.

## Conclusion

The introduction of Grouping for Containers in Qualytics enhances data organization and analysis capabilities, allowing users to define custom grouping criteria and analyze data at a granular level. By leveraging `grouping`, users can gain deeper insights into their data and streamline the analytical process, ultimately driving more informed decision-making and improving overall data quality and reliability.

*Last updated: October 6, 2026.*
