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.

Help with attendance calculation, please

Featured Replies

Hello,

I am stuck! I need to calculate attendance by half hour increments. The scenario is that within a 24 hour period, folks can have a shift starting and ending at any time.

How would one count attendance for that 24 hour period by half hour increments?

Any help would be greatly appreciated.

Elizabeth

I'm not sure what exactly you're after, but this calculation:

Round(time1/1800,0) * (1800)

should give you a time field rounded to the nearest half-hour. (Internally, FM stores time as an integer, so 1800 seconds every half hour)

Jeff

  • Author

Jeff,

Thanks. I have the time field part straight. My problem is that I need to be able to calculate how many people are in attendance at any given time. There is a maximum of say, 5 people, allowed at once. So, if someone was there 8-4, someone else 9-5, someone else 9-6, etc. I would need to be able to calculate when the cap of 5 people fluctuates to allow for a new person to come.

It's hard to put into words, so forgive me if I'm not being clear. Thanks for any help you might be able to give!

Elizabeth

Sounds like you need to use the Count function.

Let's assume you have a calculation named c.InAttendanceNow, which determines if a person is currently in attendance. It'll have some way of knowing that a person arrived but has not yet left.

Make another calculation field with Count(c.InAttendanceNow), this is the number of people currently in attendance.

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.