In article
<
4d0a2a53-4c30-4e1c...@a15g2000yqf.googlegroups.com>, David
Summary Fields look simple, and in fact making the Summary Field is
simple. Obviously what you want is just:
s_NumCourseAttendees Summary
Count of PersonName
(It's usually better to use a unique ID rather than a name.)
*BUT* it's using the Fields that cause a lot of people problems. This is
partly due to the flexibility of Summary Fields - what they summarise
depends on where you put them on the Layout and how you Sort the Records.
Another problem is often caused by the fact that Summary Fields do not
really work in Browse Mode - you have to Print or Preview the Layout for
FileMaker to calculate the sammary results. (If you want an on-screen
summary, then it's better to use a Relationship and Calculation Field.)
For your purposes you could create a report Layout that looks something like:
Number of Participants by Course
Course Name Number of Attendees
|Header
------------
[CourseName] [s_NumCourseAttendees]
|Sub-summary (by CourseName)
------------
Total Participants: [s_NumCourseAttendees]
|Grand Summary (Trailing)
------------
where the [] denote Fields.
If you then Find some / all Records and Sort them by the CourseName Field,
you can Print / Preview this Layout to get something like:
Number of Participants by Course
Course Name Number of Attendees
Accounting 15
Biology 14
English Lit. 11
Mathematics 18
Zoology 12
Total Participants: 70
Unless you specifically want to list each Record (e.g. the person's name),
you do not need a Body Part on the Layout.
Putting the s_NumCourseAttendees Summary Field in the Sub-summary Part of
the Layout means it will summarise the Records broken down by the Sort
order of that Field ... as long as you do remember to Sort the Records.
Putting the same s_NumCourseAttendees in the Trailing Grand Summary Part
of the Layout gives an overall count of ALL attendees (within the Found
Set).
You could break it down further with Sub-summary Part that count attendees
attending by Course category (e.g. Science, Arts, Literature, etc.) using
the same Summary Field. You have to Sort the Records appropriately as
well.
Helpful Harry :o)