Online Documentation for Advanced Data Export for RAD Studio VCL
property AggregateFormat: TxlsFormat;
The AggregateFormat property defines the style of the cells containing aggregate functions. To add an aggregate function, use property Aggregate of the TxlsFieldFormat. You can also write code in the OnGetAggregateParams event handler to tune the aggregate in runtime.