I have a structure like the following using ag-grid react:

The first column of "Them" has row-grouping enabled, which gives accurate values of leaf children count in parentheses. I have another column called "Status" which uses an
aggFunc: (params) => params.value.length. There is no grouping on this column. It generates what is shown in the image below. But I want that 4 to be 20, as in replicating the behavior of the row-grouping count. How can I achieve this?
This is a little tricky because the 'aggFunc' only get the values and not the node references. Here's a workaround to make it work: Instead of checking the length, try setting the value to a variable at root level and then rolling it up.
{..., COUNT: 1}{..., field: 'COUNT', aggFunc: 'sum', hidden: true}Let me know if you still need some clarification.