Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. What users can ask
  2. The functions
  3. What the grid needs
  4. What is declined
  5. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

Aggregation

On this page

  1. What users can ask
  2. The functions
  3. What the grid needs
  4. What is declined
  5. Next

Your users ask for a total, an average or a count, over the whole table or per group, and the grid shows it in its aggregation row.

What users can ask#

Ask

Revenue by category

Changes2 changes
  1. 1group category
  2. 2total revenue: sum
Ask

How many employees are there per department? Show the number of employees.

Changes2 changes
  1. 1group department
  2. 2total id: size

Several functions at once, one per column:

Ask

Group by category and show sum of revenue, average profit, minimum discount, maximum unitPrice, and number of orders on orderId

Changes6 changes
  1. 1group category
  2. 2total revenue: sum
  3. 3total profit: avg
  4. 4total discount: min
  5. 5total unitPrice: max
  6. 6total orderId: size

The functions#

FunctionThe user saysWorks on
sumThe user saystotal, sumWorks onNumbers
avgThe user saysaverage, meanWorks onNumbers
minThe user saysminimumWorks onNumbers and dates
maxThe user saysmaximumWorks onNumbers and dates
sizeThe user sayscount, how many, number ofWorks onAny column: it counts rows

A count appears in the column it is put on: the id column, unless the user names another. To show it under a friendlier heading, set the column's headerName. A total over the whole table ("what is the average salary?") has no grouping. To order groups by their totals, Gridsay also sorts by the aggregated column.

What the grid needs#

SettingWhereWith MUI's stock resolverWith the Gridsay helper
disableAggregationWhereGrid propWith MUI's stock resolverNot sent. Gridsay answers with totals, the grid does not show them, and the panel still reports success.With the Gridsay helperSent. A question that needs a total is declined.
aggregable: falseWhereColumnWith MUI's stock resolverNot sent. The grid totals that column anyway: MUI allows it from code.With the Gridsay helperSent. A total on that column is declined.
availableAggregationFunctionsWhereColumnWith MUI's stock resolverNot sent. A function the column does not offer shows nothing, and the panel still reports success.With the Gridsay helperSent. A function the column does not offer is declined.
aggregationRowsScopeWhereGrid propWith MUI's stock resolverTotals count the filtered rows unless you set it to all.With the Gridsay helperThe same.
getAggregationPositionWhereGrid propWith MUI's stock resolverWhere totals show (footer, group rows) is yours to set; an answer cannot move them.With the Gridsay helperThe same.

What is declined#

Only the five functions exist. Medians, distinct counts and shares of a total are declined:

Ask

Show the median salary

ChangesNo change
Refused

I can't compute medians; try the average salary instead.

Your user reads this sentence. The table stays as it was.

A custom aggregation function you registered on the grid cannot be asked for either. A condition on a total ("departments with more than 10 people") is declined: see Filtering.

With the helper and disableAggregation on:

Ask

Show total salary over the whole table

ChangesNo change
Refused

I can't total salaries here; aggregation is turned off for this grid.

Your user reads this sentence. The table stays as it was.

If an answer still totals after one correction, the sentence is "Totals are switched off for this table.", The `salary` column can't be totalled. or The `salary` column doesn't support that calculation.

Next#

  • Pivoting
  • Charts
  • Grouping