Filemaker Pro 8.5 Educational Maintenance T3 TJ083LL/A User Manual

Product codes
TJ083LL/A
Page of 238
18     FileMaker Functions Reference
Average
Format
Average(field{;field...})
Parameter
field - any 
; or an 
that returns a field, repeating field, or set of non-repeating fields.
Parameters in curly braces { } are optional.
Data type returned
number
Description
Returns a value that is the average of all valid, non-blank values in field, where field 
can be any of the following: 
a repeating field (repeatingField).
a field in matching 
 specified by (table::field), whether or not 
.
several non-repeating fields in a record(field1;field2;field3...).
corresponding repetitions of repeating fields in a record 
(repeatingField1;repeatingField2;repeatingField3), if the result is 
returned in a repeating field with at least the same number of repeats.
several fields in the first matching record specified by 
(table::field1;table::field2;...). You can include fields from different 
 (table 1::field A;table 2::field B...).
Examples
A Student table has a portal showing scores for all exams a student has taken. The exam 
scores are in a table called Exams.
Average(Exams::Score) returns the student’s average score for all exams she has 
taken.
In the following examples:
• Field1 contains two repetitions with values of 1 and 2. 
• Field2 contains four repetitions with values of 5, 6, 7, and 8. 
• Field3 contains 6. 
Average(Field2) returns 
6.5
 when the calculation isn’t a repeating field.
Average(Field1;Field2;Field3) returns 
4
4
7
8
 when the calculation is a 
repeating field.