Averages in subsummary reports

4 messages Options
Embed this post
Permalink
Jonathan Fletcher

Averages in subsummary reports

Reply Threaded More More options
Print post
Permalink
I have a solution that manages accounts and classes.

There is an enrollment report that lists classes and student counts.  
On each body line there is a calculated value that averages students  
per class.

When I try to include an average in the sub-summary parts the numbers  
aren't right. I have tried summary average fields. I have tried  
calculated fields that divide the summary total fields. Nothing I've  
tried calculates it correctly.

Does anyone have a trick for having averages in sub-summary (and grand  
summary) parts?

TIA!


--
Jonathan Fletcher
FileMaker 9 & 10 Certified Developer
****NEW Ph no: 502-509-7137****

Project Foreman
NewMedia Construction Co.
[hidden email]

Instigator
The BB&J Network
The "Go-To Guys" for
FileMaker Development in Louisville
www.thebbandj.net

FileMaker Louisville Blog:
http://filemakerlouisville.posterous.com



_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Aaron Gutleben

Re: Averages in subsummary reports

Reply Threaded More More options
Print post
Permalink
Hi Jonathan...

This link is to an example file that Kevin Frank put together. It should
help you with your challenge.

http://www.kevinfrank.com/download/classroom-averages.zip

Aaron


On 10/27/09 7:32 PM, "Jonathan Fletcher" <[hidden email]>
wrote:

> I have a solution that manages accounts and classes.
>
> There is an enrollment report that lists classes and student counts.
> On each body line there is a calculated value that averages students
> per class.
>
> When I try to include an average in the sub-summary parts the numbers
> aren't right. I have tried summary average fields. I have tried
> calculated fields that divide the summary total fields. Nothing I've
> tried calculates it correctly.
>
> Does anyone have a trick for having averages in sub-summary (and grand
> summary) parts?
>
> TIA!
>
>
> --
> Jonathan Fletcher
> FileMaker 9 & 10 Certified Developer
> ****NEW Ph no: 502-509-7137****
>
> Project Foreman
> NewMedia Construction Co.
> [hidden email]
>
> Instigator
> The BB&J Network
> The "Go-To Guys" for
> FileMaker Development in Louisville
> www.thebbandj.net
>
> FileMaker Louisville Blog:
> http://filemakerlouisville.posterous.com
>
>
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>


_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Jonathan Fletcher

Re: Averages in subsummary reports

Reply Threaded More More options
Print post
Permalink
Thanks, Aaron.

Looking at that sample made me realize how badly I described my problem.

If all I had to do was count classes and divide into the total number  
of students, I'd have no problem.

Let me be more clear.

The classes all have different numbers of meeting times. What the  
client wants is the average number of students per meeting time. So  
each record line looks something like this:

                Meetings   Students    Avg.
Art101         10            71         7.1

Meetings is the number of times the classes meet. Students is the  
number of times a student was present at a class meeting. The last  
column then gives the average number of students per class meeting.

This is subtotaled by class location, then by grade level, and then by  
region. This is done with sub-summary parts, of course, and the totals  
for number of classes and the totals for the number of student-
attendances work fine.

What I need is to get an average summary or calculation field that  
works at each sub-summary level that gives an average of the total  
student-attendances per total number of classes. I have not yet found  
the magic calculation to display that.

I have tried:

1. Putting a Summary "Average" field in the sub-summary parts.

2. Putting a calculation that calculated from the sub-summary total  
fields in each SS part.

Neither works.

Any suggestions?



On Oct 27, 2009, at 10:54 PM, Aaron Gutleben wrote:

> Hi Jonathan...
>
> This link is to an example file that Kevin Frank put together. It  
> should
> help you with your challenge.
>
> http://www.kevinfrank.com/download/classroom-averages.zip
>
> Aaron
>
>
> On 10/27/09 7:32 PM, "Jonathan Fletcher" <[hidden email]>
> wrote:
>
>> I have a solution that manages accounts and classes.
>>
>> There is an enrollment report that lists classes and student counts.
>> On each body line there is a calculated value that averages students
>> per class.
>>
>> When I try to include an average in the sub-summary parts the numbers
>> aren't right. I have tried summary average fields. I have tried
>> calculated fields that divide the summary total fields. Nothing I've
>> tried calculates it correctly.
>>
>> Does anyone have a trick for having averages in sub-summary (and  
>> grand
>> summary) parts?
>>
>> TIA!
>>
>>
>> --
>> Jonathan Fletcher
>> FileMaker 9 & 10 Certified Developer
>> ****NEW Ph no: 502-509-7137****
>>
>> Project Foreman
>> NewMedia Construction Co.
>> [hidden email]
>>
>> Instigator
>> The BB&J Network
>> The "Go-To Guys" for
>> FileMaker Development in Louisville
>> www.thebbandj.net
>>
>> FileMaker Louisville Blog:
>> http://filemakerlouisville.posterous.com
>>
>>
>>
>> _______________________________________________
>> FMPexperts mailing list
>> [hidden email]
>> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
>>
>
>
> _______________________________________________
> FMPexperts mailing list
> [hidden email]
> http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au


--
Jonathan Fletcher
FileMaker 9 & 10 Certified Developer
****NEW Ph no: 502-509-7137****

Project Foreman
NewMedia Construction Co.
[hidden email]

Instigator
The BB&J Network
The "Go-To Guys" for
FileMaker Development in Louisville
www.thebbandj.net

FileMaker Louisville Blog:
http://filemakerlouisville.posterous.com



_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au
Jonathan Fletcher

Re: [SOLVED] Averages in subsummary reports

Reply Threaded More More options
Print post
Permalink
The issue was that I needed to use WEIGHTED averages so that the  
averages in the sub-summary parts would average correctly. A developer  
friend of mine showed me the button (that I had never noticed before)  
on the summary field dialog that allows you to specify a field to  
"weight" the averages by. That was exactly what I needed.

Thanks to all who read my posts and scratched their heads and tried to  
figure out what the heck I was talking about. Thanks to Bart who  
kindly emailed me some sample files back-channel and then gave up in  
frustration when I was too needy.

I wrote up my problem and solution and put it on our blog (with 8 x 10  
color glossy photographs with circles and arrows and a paragraph on  
the back of each one) for those who are interested. (http://filemakerlouisville.posterous.com 
)

j.


>>> I have a solution that manages accounts and classes.
>>>
>>> There is an enrollment report that lists classes and student counts.
>>> On each body line there is a calculated value that averages students
>>> per class.
>>>
>>> When I try to include an average in the sub-summary parts the  
>>> numbers
>>> aren't right. I have tried summary average fields. I have tried
>>> calculated fields that divide the summary total fields. Nothing I've
>>> tried calculates it correctly.
>>>
>>> Does anyone have a trick for having averages in sub-summary (and  
>>> grand
>>> summary) parts?


--
Jonathan Fletcher
FileMaker 9 & 10 Certified Developer
****NEW Ph no: 502-509-7137****

Project Foreman
NewMedia Construction Co.
[hidden email]

Kentuckiana's First FMP User Group:
Coming November 19th
Check it out in the FileMaker Louisville Blog:
http://filemakerlouisville.posterous.com





_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au