Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Sort by Values From a Summary Field


This topic is 5857 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I'd like to sort by values from a summary field.

I have a database for a fundraising event . One table has the donation information (donor's name, amount, student to be credited for donation etc.) that is linked by student ID number to another table of student info. This table may have several donation records per student. The Student table has the student information (name, grade, teacher, etc.). I want a report that is sorted by teacher's name then lists each student in that class by total donation amount per student. The layout works fine if it's sorted by teacher then student name, but I can't figure out how to sort by total donation amount per student.

And as a bonus, no mater how I have it set up I can't seem to get an average donation amount per class (total donations by class/count of students in class).

Any suggestions?

Thanks

  • Newbies
Posted

Thanks for your demo. It was much more than I expected, but not quite the set-up I have. I have student information in another table linked to the donation table by student id. I thought I could modify the demo you provided, but there are some calculations I do not understand. I am attaching my modifications if you have the time to look at it.

Thanks

student_donations_2.fp7.zip

Posted (edited)

A quirk of GetSummary is that the break field must live in the local table... so I've added two new calculated fields to the "student donations" table: student_name_echo and teacher_name_echo. I also revised the sort criteria and the break fields on the report accordingly.

See attached revised demo.

student_donations_3.zip

Edited by Guest
Corrected error in average calculation
Posted

I've just posted corrected versions of both the student_donations_3 demo above, and the expanded version (http://tinyurl.com/6zqs23).

This topic is 5857 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.