Before adding variables, we need to understand a few terms:
- Variable name: Each variable must have a name to identify it, in the places where it is required.
- Variable class: Each variable has a particular type, thus the particular Java type must be selected for the variable in iReport.
- Calculation: Variables can perform built-in calculations, such as sum, average, lowest, highest, standard deviation, variance, count, distinct count, and so on. If there are no built-in calculation types for an operation, we can build the expression using the wizard as we will do for our first variable "Total". However, for the grandtotal, we will use the built-in calculation type
- Reset type: For variables, we can specify the reset type at which ...