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.

"If" statement based on a checkbox

Featured Replies

I have two databases Attendance and Class List. There is a relationship connecting them based on [color:"blue"] Student Name . A drop down menu in the Attendance database defines if the student is "tardy" and a check box defines if the tardy was "excused" (0=not excused, 1=excused).

The Class List database uses the following "If" statement to count the number of tardys and subtract 1 if the tardy is excused:

If(Attendance::Excused=1, Sum(Attendance::#Tardy1)-1,Sum(Attendance::#Tardy1))

This formula works for the first occurance of a student but if there is a second tardy it doesn't subtract. When I check off the box, the sum stays at 1...

Thoughts?

-Ben

Why wouldn't you just use Sum(Attendance::#Tardy1)-Sum(Attendance::Excused)? No IF statement.

  • Author

Origionally I had done that but it wasn't counting all the occurances over multiple records. I now have a field that counts the tardys and another that determines if it is excused. Then it finds the difference. My brain is working in Excel and trying to translate it to FM...sigh...

My new problem is as such:

Let's I have 200 records in the behavior database. I only want my report to return results for the last 14 days. How do I limit the report to this range?

- Ben

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.