Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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>
  • No labels