FlexReport supports aggregate expressions in all its calculated fields. The aggregate expressions includes aggregates - Sum, Min, Max, Avg, Count, Range, Var, and so on.
All aggregate functions take an expression as an argument and evaluate it within a scope that is determined by their position in the report. For example, aggregates in group headers or footers have the scope of the group. Aggregates in the report header or footer have the scope of the entire report.
For example, the following aggregate expression would return the sum of all values in the Sales field for the scope of the aggregate (group or report): Sum(Sales)
The following aggregate expression would return the total amount of sales taxes paid for all values in the report (assuming an 8.5% sales tax):Sum(Sales * 0.085)
The following example uses Count aggregate to calculate number of records for employees falling under a designation.