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.

Finding totals by FIELD value

Featured Replies

I have a database with the two following fields: WORKERS - HOURS.

Typical values for each field might be as follows:

WORKER HRS

Betty 5

Billy 6

Skippy 2

Betty 1

Billy 2

Bob 5

Betty 5

Billy 6

Is there a way to find all occurrences of unique names and then total the values per unique name?

I would like the end result to look like this:

Betty 11

Billy 14

Skippy 2

Bob 5

I can figure out how to subtotal by field group, but it escapes me how to do this by individual field value.

Any ideas?

Thanks,

Jarvis

  • 2 weeks later...

This is exactly what Sub-Summary parts are for.

Create a columnar report layout, and add a Sub-Summary by Worker part. On that part insert the Worker Name and a summary Total of Hours field. You may remove the Body part from the layout so only the summaries show.

Remember: Sub-Summary parts only show up in Preview Mode or on the printouts, and only after you sort the records by the fields used in the Sub-Summary parts. Usually it's best to create a script that simplifies the sorting, switching layouts, and preview/printing when making this of report.

Hi,

I am doing something simular but i also need a summary total (number) of how many unique staff they have i.e the result for the example above would be 4

That's a little different. If I recall correctly, you'd need to do it with additional fields like these:

Count of RecordID (summary) = Count of RecordID

Fractional Count by Worker (calculation, number result) = 1/getsummary(Count of RecordID; Worker Name)

Count of Workers (summary) = Total of Fractional Count by Worker

When sorted by Worker Name, the Count of Workers should show the correct total.

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.