# Grouping and Aggregation in Tree View

The Grouping & Aggregation feature allows users to organize related records into meaningful clusters while simultaneously displaying aggregated business metrics directly within the Tree View. By grouping records based on a selected field—such as Gender, Region, Status, or Account Type, users gain a structured, high-level view of their data.

In addition to grouping, the system automatically calculates aggregate values (SUM, COUNT, AVG, MIN, MAX) for a chosen numeric measure and displays the result on the connecting node.

In the example shown, contacts are grouped by Gender, and the Credit Limit (SUM) for each group is displayed above the cluster as on hover over the cluster node:\
Credit Limit (SUM): ₹10,000.00

This provides users with instant insights into grouped data without needing to open records or run reports.

<div data-with-frame="true"><figure><img src="/files/MQJxIweJO8W6RvSIKXnO" alt="Grouping &#x26; Aggregation of Records in Tree View"><figcaption></figcaption></figure></div>

{% hint style="success" %}
For further queries, reach out to us at <crm@inogic.com>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inogic.com/map-my-relationships/features/tree-view-visualization/grouping-and-aggregation-in-tree-view.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
