Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sort by Values From a Summary Field

Featured Replies

  • Newbies

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

See attached demo. It addresses both your issues -- a) within a class, sorting students by descending order of total donation amount, and :) calculating the average student donation amount per class.

student_donations.fp7.zip

Expanded version of the above demo available at

http://tinyurl.com/6zqs23

Contains more counts, averages and totals.

  • Author
  • Newbies

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

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

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.