Aggregate functions are functions where the values of multiple rows are grouped together to form a single summary value. The Summary Control is intended for adding aggregate functions into the report. You have two ways to specify the function:
The Report Engine provides few aggregate functions:
Aggregate functions, in reports, should be used in the footer regions. Using in the others regions (headers or body), is unusual. Valentina Reports supports aggregate or summary controls in Footer and Header regions. Computation of the function performed on values of fields, which are included into the current region.
Suppose you have a simple table, that contains two fields:
You needs to create a report, that prints a list of all values of the field f_num, with next conditions:
For this purpose we will create the report:
let's see, what we will get in the output of the report:
Other aggregate functions works similarly.