Description
A report function that calculates the maximum value of one field (column) from the data source.
The function can be used in two ways:
- to calculate a maximum value for the entire report
- to calculate a maximum value within a particular group
This function expects its input values to be either java.lang.Number instances or Strings that can be parsed to java.lang.Number instances using java.text.DecimalFormat.
The function understands two parameters:
- field parameter is required and denotes the name of an ItemBand-field which gets summed up.
- group parameter denotes the name of a group. When this group is started, the counter gets reset to null.
Example
<function class="org.jfree.report.function.ItemMaxFunction" name="Actual\_Sales"> <properties> <property name="field">ACTUAL</property> <property name="group">RegionGroup</property> </properties> </function>