Totals & grouping
Section titled “Totals & grouping”This guide is for builders who want an entries list to answer “how much?” as well as “which ones?” — the total value of open invoices, the number of requests per department, the average resolution time per priority. By the end you will be able to define totals on an entity, show them in the views that need them, and group a list so each group carries its own subtotals.
How it works
Section titled “How it works”There are two separate settings, set in two places:
| What | Where | What it decides |
|---|---|---|
| An aggregator — a field plus a calculation, such as Sum of Amount | The entity’s Aggregators tab | Which totals can be shown |
| Which aggregators a view shows, and how it groups | The view’s entries-list settings | What this view shows |
Take an Invoices entity. You define two aggregators — Total amount (Sum of Amount) and Invoices (Count). The Open invoices view switches both on and groups by Customer: readers see one block per customer with its own total, and a grand total for the whole list.
flowchart LR E["Entity: Invoices"] --> A["Total amount<br/>(Sum of Amount)"] E --> C["Invoices<br/>(Count)"] E --> B["Average amount<br/>(not shown anywhere)"] A --> V["View: Open invoices<br/>grouped by Customer"] C --> V V --> T["Grand total, and a subtotal per customer"]
An aggregator takes effect as soon as you save it — there is no publish step. It travels with the entity when you package it.
Define an aggregator
Section titled “Define an aggregator”- Open the entity’s designer: Administration › Applications › Modules, open the module, open the entity, and edit it.
- Select the Aggregators tab, then New Aggregator.
- Choose the Field and the Operation.
- Enter a Display Name — readers see it next to the figure.
- Save the dialog.
Copy opens a new aggregator pre-filled from an existing one (named ”… - Copy”); Edit and Delete do what they say. Deleting an aggregator removes it from every view that showed it, without an error — those views simply stop showing that figure.
Which operations a field allows
Section titled “Which operations a field allows”| The field is… | You can choose |
|---|---|
| A Number field | Count, Sum, Min, Max, Average |
| Any other type (text, date, reference…) | Count only |
| An encrypted field | Not offered |
Count counts records that have a value in the chosen field, not every record
in the list Since 1.10. Count Assigned to tells you how many invoices have
someone assigned.
Fields inside a block can be used (each field of the block is offered, not the block itself). There is no limit on how many aggregators an entity has, and one field can have several — Sum of Amount and Average of Amount appear stacked in the same column. Name each one, so they can be told apart.
Show totals in a view
Section titled “Show totals in a view”- Open the view’s settings and go to its entries-list settings.
- Under Aggregators, tick the aggregators this view should show.
- Save the view.
A view shows only the aggregators ticked on it. A new aggregator does not appear anywhere until you tick it in each view that should have it — there is no “all views” switch. This is deliberate: a published or public view never starts showing a new figure without your decision. On the entity’s own entries list in Administration (with no view), every aggregator is shown.
Group a list
Section titled “Group a list”In the same entries-list settings, under Grouping:
- Select Add Group By and choose a field. Add more levels if you need them — the first is the outer group; drag levels to reorder them.
- Optionally turn on Collapse groups by default so every group starts closed.
- Optionally turn on User change grouping to let readers choose their own grouping from the list’s view settings.
- Save the view.
A grouping level must be one of the fields the view lists — you cannot group by a column you have hidden.
Fields you can group by
Section titled “Fields you can group by”You can group by text, translated text, number, date, category, switch, a single-value reference, a mapped field, and any field inside a non-repeating block.
You cannot group by a field that can hold more than one value for a record — a multi-value field, a repeatable field, a field inside a repeatable block — because the record would belong in several groups at once and every count would be wrong. Lookup fields, ranged (from/to) fields and the record’s details (Created by and so on) cannot be grouped either.
- Multi-value categories
Since 1.10. A category field set to hold several values cannot be a grouping level — nor a default sort, a dashboard group-by, a Kanban column, a timeline category, or the entity’s main category. If you switch a category to multi-value while one of those uses it, the change is refused until you remove the usage; and a view that grouped by it before simply stops grouping. - References — each group is one related record, titled with its main title. If that record was deleted, archived or is out of the reader’s reach, the group keeps its entries and shows no title.
- Translated text groups on the language the reader is using, so readers in different languages can see different groups.
Read the figures
Section titled “Read the figures”- The grand total covers every record the list matches — after filters, search and quick filters — not just the page on screen. Moving to page 4 does not change it.
- Each group shows the same aggregators again, as a subtotal for that group.
- Subtotals do not always add up to the grand total — group sums do, group averages do not.
- When the list has exactly one group, the grand-total row is left out (it would repeat that group).
| You see | It means |
|---|---|
| - | There was nothing to total — no records, or none with a value. |
| 0 | A real zero. |
| **** | The figure exists, but the field is protected and this reader may not see it. |
Whose grouping wins
Section titled “Whose grouping wins”The view’s grouping is what everyone sees when they open it. If you allowed User change grouping, a reader’s own choice lasts for their session only:
| When the reader… | Is their grouping kept? |
|---|---|
| Reloads the page, or moves around the portal and comes back | Yes |
| Opens a new tab, signs out, or uses another device | No |
| — and you change the view’s grouping | No — your change replaces it |
Order of the groups. Unsorted, groups follow the field’s own order — the option order of a category or switch, or the title of a referenced record. When a reader sorts, groups are ordered by their highest (or, ascending, lowest) value in the sorted column, counting only the rows the reader can see.
Protected fields
Section titled “Protected fields”See Sensitive fields for how a field becomes sensitive or encrypted.
- An aggregator over a sensitive field stays visible under its name, with the value shown as **** to readers who may not see the field.
- An encrypted field cannot be used for an aggregator at all, and is not offered for grouping.
- Grouping by a sensitive field puts every record into one group titled ****, for everyone — even people allowed to see the field. Records with no value join that same group, so nothing about the field leaks. The setting is allowed, but useless; remove it if you see it.
- On a public view, an aggregator over a sensitive field is left out entirely.
Good to know
Section titled “Good to know”- In preview mode, totals show - and lists are not grouped — preview never invents figures.
- Exports carry no totals or group headings. Grouping only puts each group’s rows next to each other in the file. If a total must leave the platform, read it from the list or a summary.
- Aggregators or summaries? An aggregator is a figure on a list the reader is already looking at. A summary is a card of its own — a number, list or chart — that can sit on a dashboard.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
| A new aggregator does not show | Tick it under Aggregators in each view that should show it. |
| Only Count is offered | The field is not a Number field. |
| A field is missing from Add Group By | It can hold several values, is encrypted, or is not listed in the view. |
| A figure shows - | Nothing matched, or no matching record has a value. |
| Everything is in one **** group | The grouping field is sensitive. Group by another field. |
| A reader’s grouping disappeared | Their grouping lasts for the session, and resets when you change the view’s grouping. |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27