> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Show or hide totals

> How to control totals visibility in Atoti UI tables and KPI widgets, including toggling grand total rows and columns and per-level subtotals from the Totals context menu, with advanced control via mdx.hiddengrandtotals and mdx.hiddensubtotals.

Atoti UI provides the ability to show or hide grand total rows and columns or subtotals on [tables for aggregated data](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#tables-for-aggregated-data) and [KPI widgets](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#kpi-widgets). By default, the totals are shown.

> [!NOTE]
>
> The ability to show or hide totals relies on a plugin. If you cannot find this
> in your application, contact your system administrator.

## Grand total rows or columns

To show or hide grand total rows:

* Right-click anywhere on a table or KPI widget to open the context menu.
* Select **Totals** then **Show/Hide grand total rows**

Show or hide grand total columns in the same way.

![A pivot table is right-clicked to open the Totals submenu, where all options
are initially checked. Grand total rows and columns are unchecked one by one
and disappear from the table. They are then checked again and
reappear.](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/analyze-data/show-or-hide-totals/show-hide-grandtotals.gif?s=cb6777d16cb2c7afc1a90714faa104a5)

> [!TIP]
>
> Advanced users may control the grand totals using the
> [**mdx.hiddengrandtotals**](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/analyze-data/context-values.md#mdxhiddengrandtotals) context
> value.

## Subtotals

Subtotals can be shown or hidden on a per [**level**](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/navigate-atoti-ui/data-model.md#level) basis. If you have several levels in your widget you can choose to show or hide the subtotals for each one.

To show or hide subtotals:

* Right-click on a cell from the level for which you wish to show or hide subtotals.
* Select **Totals** then **Show/Hide *'level name'* subtotals**.

If you wish to show or hide the subtotals for another level, follow the same steps.

![A pivot table is right-clicked to open the Totals submenu, where Show
Currency totals is initially checked. It is unchecked and the Currency
subtotals disappear from the table. It is then checked again and they
reappear.](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/analyze-data/show-or-hide-totals/show-hide-subtotals.gif?s=35c605699dceb27cd28168a3f2551661)

> [!TIP]
>
> Advanced users may control the subtotals using the
> [**mdx.hiddensubtotals**](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/analyze-data/context-values.md#mdxhiddensubtotals) context value.
