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

counting records based on 2 criteria

Featured Replies

I am working on a database for my babysitting company. I would like a count of each time a sitter sitted for a client. Not the number of jobs a sitter has worked on total, mind you, but the number of jobs for each client.

I have included the bare-bones structure I'm working with.

Any help would be greatly appreciated.

Sitters_test.zip

I am assuming you want this in the portal for the Sitters layout instead of in a summary report. Put another table occurence of the Jobs table on the graph. Then create a self join relationship keyed on ClientID. Create a calculation that is a Sum ( Job 2::HoursBooked ) and then you can put this calculation on the portal.

  • Author

Of course, the ol' self-join. Thank you. I used a variation on your tip. I got it working the way I want by making another instance of the Job Table and matching both the sitter and client ids. Then I could count what I wanted.

FYI: I'm using this count so that I can sort a portal of available sitters for a job based on the number of times they've sitted for that client.

Thanks for the help. It was just the inspiration I needed.

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.