TanStack Table version
v8.21.3
Framework/Library version
React v19.0.0
Describe the bug and the steps to reproduce it
When grouping by multiple columns, the secondary grouped column does not show its aggregated value at the parent group level.
In my case, the Age column has a min aggregation function. When I group by both Department and Age:
- The Age aggregation works correctly at the Age-group level (shows
24, 34, etc.)
- But at the Department group level (top-level row), the Age cell is completely blank — even though
aggregationFn: 'min' is defined. (See the red box in the screenshot)
This is the same issue reported in [#3232](#3232).
Steps to reproduce:
- Create a table with at least two columns that have
aggregationFn defined (e.g. min for Age, sum for Salary)
- Group by more than one column (e.g. Department → Age)
- Expand a top-level group row (e.g. Engineering)
- The secondary grouped column (Age) shows an empty cell at the top-level group row instead of the aggregated value
Expected behavior:
The Age column should display 24 (min value) on the Engineering row — aggregation should work at every group level, regardless of whether that column is itself grouped.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/sandbox/3j77s3
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
TanStack Table version
v8.21.3
Framework/Library version
React v19.0.0
Describe the bug and the steps to reproduce it
When grouping by multiple columns, the secondary grouped column does not show its aggregated value at the parent group level.
In my case, the Age column has a
minaggregation function. When I group by both Department and Age:24,34, etc.)aggregationFn: 'min'is defined. (See the red box in the screenshot)This is the same issue reported in [#3232](#3232).
Steps to reproduce:
aggregationFndefined (e.g.minfor Age,sumfor Salary)Expected behavior:
The Age column should display
24(min value) on the Engineering row — aggregation should work at every group level, regardless of whether that column is itself grouped.Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/sandbox/3j77s3
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct