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.

Count Records under certain circumstances

Featured Replies

I know there are a lot of topics on this subject, but I didn't find any that fixed my problem. I'm a pretty new to filemaker so let me know if this doesn't make sense.

So: I want a field (call it InStock) that will display how many records fit a certain criteria specifically:

if instockinventory=0 and location=n

then I want it to tell me how many records there are for the field called model number.

The picture posted shows a find that shows all the records for the critera of

instockinventory=0 and location=n

and 4 records of that model number

I would like that # of found records to be put into a field called instock, so I don't have to go into find mode and search every time

My main goal was to display for each record how many of a certain model number of a product was left in stock. So that is my goal.

Let me know if you need clarification and Thank you!

photo.jpg

Create the calc that will return a boolean value of whether or not it fits your criteria. Lets call it cFlag

cFlag: instockinventory=0 and location=n

Then create a summary field that sums up cFlag.

Now you can create a new self join relationship keyed on model number to model number. You can now reference the RELATED self join summary field and it will give you a count for the model number of the record that you are on.

  • Author

I can follow you all the way up to:

"You can now reference the RELATED self join summary field and it will give you a count for the model number of the record that you are on."

I'm not real sure what that means or how to do it. Could you explain it a little further?

Put the summary field from the child table occurence on the parent table occurence layout.

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.