groupdown
PERIOD

The groupdown statement 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).


Parameters

This statement has one parameter:

period – identifies the span of each group. This parameter is optional, and only applies if the current field is a date field (it will be ignored for any other type of group). The options for this parameter are listed below. Use the options exactly as shown, with no quotes.

If the current field is a date field and this parameter is omitted, the database will be grouped by day.


Description

This statement divides the database into groups according to the current field. For example if the current field contains company names there will be one group per company, in reverse alphabetical order (from Z to A). If the current field contains zip codes there will be one group per zip code, ordered from high to low. If the current field contains dates it may be grouped by day, week, month, quarter or year, starting with the most recent.

This example calculates totals for each month, with more recent months towards the top.

field Date
groupdown by month
field Debit
total

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.