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.

Calculations in Sub-Summary Part

Featured Replies

I have what I thought was a pretty simple task, but it didn't quite work.

I work for a school district. One of the schools gave me a file of course and grade data. They wanted to know "what percent of students passed each course?

I created a calculated Case field (Pass Calc) to determine if the the grade was "passing" or not (if passing, "1", otherwise "0"). Then I created a summary field (Total Pass) to sum Pass Calc. I also have a summary field to count the number in each course (Class Count).

The layout has only a sub-summary part (when sorted by Course Name). In that part I have Course Name, Total Pass, Class Count. This works fine.

The problem arose when I tried to calculate the percent passed for each class by simply dividing Total Pass by Class Count in the same sub-summary line. Instead of getting the percent for each class, I got the total percent for the entire population.

Picture of Layout and Previewed page attached.

Shouldn't I be able to calculate this? What have I done structurally wrong?

FileMaker Version: 6

Platform: Mac OS 9

SubSummaryCalc.pdf

You want to use the GetSummary function. Using summary fields in a calculation like that will give you a result based on every record in the found set. Try something like GetSummary( TotalPass, Course ) / GetSummary( TotalInClass, Course ) and format it as a percentage.

  • Author

Thanks. Worked perfectly I appreciate the time you took to educate me!

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.