ItemMaxFunction

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 java.lang.Number instances.

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>