> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/analytics+/working-with-analytics+/22.-row-aggregation.md).

# 22. Row aggregation

You can customize the aggregation method for your hierarchical axis categories. By default, charts and cards use the sum of parent category contributions. However, you can switch this to alternative options like average, minimum, maximum, or first, depending on your analytical needs.  In table mode, you can set the aggregation method for the total row.

### Row aggregation in charts

Navigate to the Data section of the toolbar and click the Aggregation option.&#x20;

In the images below, look closely at how the Actuals for each year(parent category) change based on the aggregation type.

<div><figure><img src="/files/mjEgvQwY7hvcGf1jNHny" alt=""><figcaption><p>Sum </p></figcaption></figure> <figure><img src="/files/etzMhpo7oUmLQ4lciBpv" alt=""><figcaption><p>Average</p></figcaption></figure> <figure><img src="/files/NGYRibL2hzVZgQ7FGo2W" alt=""><figcaption><p>Minimum</p></figcaption></figure> <figure><img src="/files/FEU7d1cDi18O9HiHDksE" alt=""><figcaption><p>First</p></figcaption></figure></div>

### Row aggregation in tables

The row aggregation method will be applied to the grand total row as well as the sub-total rows in the case of hierarchical axis categories.&#x20;

<div><figure><img src="/files/2ZzFiv6Z05LO7C5QAXZQ" alt=""><figcaption><p>Sum</p></figcaption></figure> <figure><img src="/files/kLm3aKdQkN5PRAD15ZND" alt=""><figcaption><p>Average</p></figcaption></figure> <figure><img src="/files/dOuvSUh26xZAVUT8t4kS" alt=""><figcaption><p>Maximum</p></figcaption></figure> <figure><img src="/files/T8Xfa7AoztuhxBaumDTv" alt=""><figcaption><p>Last</p></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.inforiver.com/analytics+/working-with-analytics+/22.-row-aggregation.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.
