QUE CORPORATION - Using Filemaker pro X
| < Day Day Up > |
GetSummary()
Category: Summary Syntax: GetSummary ( summaryField ; breakField ) Parameters: summaryField ”a field of type summary, or an expression that returns a reference to one; breakField ”a field, or an expression that returns a reference to one. Description: The GetSummary() function returns the value of summaryField when summarized by breakField . The found set must be sorted by breakField for GetSummary() to return the proper value. When the summaryField and the breakField are the same field, GetSummary() returns a grand summary representing the entire found set of records. Examples: Given the following record set, sorted by Country, and a summary field called Sum_Sales defined as the Total of Sales:
A field SalesByCountry defined as
GetSummary (Sum_Sales ; Country)
returns 100,000 for the two U.S. records and returns 75,000 for the two China records. Comments: GetSummary() returns the same values that you would see if you were to place the specified summary field in a subsummary report. GetSummary() is necessary when you need to use summarized values in calculation formulas or for display purposes while in Browse mode. To calculate a grand summary value, use the same summary field for both the summary field and the break field parameters.
|
| < Day Day Up > |