In canned reports module, there is the option of using calculated fields. The calculations options are available on right click on any component (text or numeric field) on the canvas.
In order to apply the calculation on a field, right click on the field, hover to Calculation option and select the calculation you want to use.
The following calculation options are available for any particular field:
- Average − The variable value is the average of every non-null value of the variable expression. Valid for numeric fields only. Output is as shown below:
- Count − The variable value is the count of non-null instances of the variable expression. Output is as shown below:
- Distinct Count – The variable value is the count of all distinct values of the expression. Output is shown below:
- First − The variable value is the value of the first instance of the variable expression. Subsequent values are ignored. Output is shown below:
- Highest − The variable value is the highest value for the variable expression. Output is shown below:
- Lowest − The variable value is the lowest value for the variable expression in the report. Output is shown below:
- StandardDeviation − The variable value is the standard deviation of all non-null values matching the report expression. Valid for numeric variables only.
- Sum − The variable value is the sum of all non-null values returned by the report expression.
- System − The variable value is a custom calculation.
- Variance − The variable value is the variance of all non-null values returned by evaluation of the report variable’s expression.