Skip 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.

Another Calculation Question

Featured Replies

I've got a summary field on my timesheet file to indicate total number of hours in the current lookup. I'd like to show the user how many hours they have entered for the day (based on the date field of the record, rather than "today's date"). Obviously, I could create scripts and add buttons to perform a find, but is it possible to do this with a calculation? In other words, can I write a formula that will say "summarize all records where date field matches the date field of this record"?

~Courtney

you can make a self joined relationship between the two date fields and make you summary a calculation of

sum(relationship::date field)

Courtney, of course Slobey didn't mean to sum the date field; easy mistake to make here.

sum(relationship::date field)

He meant: Sum(datefield relationship::HoursWorked)

Wow - would you have gotten a lot of hours worked! smile.gif

LaRetta

  • Author

Thank you both! That worked beautifully (of course).

~Courtney

can I write a formula that will say "summarize all records where date field matches the date field of this record"?

I assume by 'this record' you mean the current worker? To restrict the sum to the current RECORD, you will need to also join WorkerID to WorkID on =.

So it will be:

WorkerID = WorkerID

DateWorked = datefield

If you just use a date, you'll get a sum of ALL hours for one date regardless of the Worker. It doesn't sound like that's what you want. smile.gif

Oops! Thanks Loretta

  • Author

If you just use a date, you'll get a sum of ALL hours for one date regardless of the Worker. It doesn't sound like that's what you want.

True, but each user only has access to his/her own records, so all is well.

~Courtney

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.