Sum()

 <  Day Day Up  >  

Sum()

Category: Aggregate

Syntax: Sum (field { ; field...} )

Parameters: field ”any related field, repeating field, or set of non-repeating fields that represent a collection of numbers . Parameters in curly braces {} are optional.

Description: Returns the sum of all valid values represented by the fields in the parameter list.

Examples:

 

 Sum (field1 ; field2 ; field3) 

Returns 6 (when field1 = 1, field2 = 2, and field3 = 3).

 

 Sum (repeatingField) 

Returns 6 (when repetition 1 = 1, repetition 2 = 2, and repetition 3 = 3)

 

 Sum (repeatingField1 ; repeatingField2) 

Returns a repeating calculation field that contains 6 ; 12 ; 24 , when the referenced repeating fields each contain three values.

 

 Sum (Customer::InvoiceTotal) 

Returns 420 (when the sum of InvoiceTotal in the related set of data is 420).

Comments:

The Sum() function is most often used to add up a column of numbers in a related table.

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net