maximum
The maximum statement calculates the maximum and sub-maximums for the current field.
Parameters
No parameters.
Description
This statement calculates the maximum of the visible records for the current field. The current field may be numeric, text, or a date field. If the database contains summary records, this statement will calculate the sub-maximum for each summary record, along with an overall maximum for the whole database. If there are not any summary records in the database, one will be added at the end of the database and the overall maximum will be calculated and placed into the summary record.
This simple example calculates the largest check in the database.
field Debit
maximum
This example calculates the largest sale for each state, along with the overall largest sale.
field State
group
field Sales
maximum
See Also
- analyzedialog -- opens the standard Analyze dialog.
- average -- calculates averages and sub-averages for the selected records in the current field.
- collapse -- hides the detail records associated with the currently active summary record.
- collapsetosummary -- collapses to the next higher summary level.
- count -- counts all non-empty data cells for the current field.
- expand -- reveals the next level of collapsed detail records associated with the currently active summary record.
- expandall -- reveals all collapsed detail records associated with the currently active summary record.
- groupdown -- divides the database into groups, with a summary record at the end of each group. The groups are arranged in descending order (high to low).
- groupup -- divides the database into groups, with a summary record at the end of each group. The groups are arranged in ascending order (low to high).
- info("collapsible") -- checks to see if the current record is collapsible.
- info("expandable") -- checks to see if the current record is expandable.
- minimum -- calculates the minimum and sub-minimums for the current field.
- removeallsummaries -- removes all summary records.
- removedetail -- removes data records from the current database, leaving only summary records. It can also delete low level summary records, leaving only higher levels.
- removesummaries -- removes summary records from the current database.
- total -- calculates totals and subtotals for the current field.
History
10.0 | No Change | Carried over from Panorama 6.0. |