Aggregation Function - only
Summary
- The only aggregation is provided by AdapTable to supplement the Aggregation Functions provided by AG Grid
- It returns a value if that value is the only one that appears in the aggregated data group
AdapTable provides an only aggregation function for use in Grouped Layouts.
Note
This is in addition to the ONLY aggregation function in AdapTableQL, used in Calculated Columns
The only aggregation returns a value if that value is the only one that appears in the aggregated data group.
Hint
A set of [5, 5, 4] will return null, as will a set of [5, 5, null] - but a set of [5, 5, 5] will return 5
Aggregations: 'Only' Custom Aggregation
- In this example we group on the
LanguageColumn and provide 2 only aggregations - on theLicenseandIssue ChangeColumns - We have also amended the usual row Data so that all the values for
HTMLin theLicensecolumn are "MIT License", and all theTypeScriptvalues in theIssues Change Columnare "12" - As a result we see the
onlyaggregation return these values for these 2 groups