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.

Counts of item categories in summary field

Featured Replies

This is not such a rare situation, but I'm puzzled, about how to list the count of related records in a summary part.  The setup is like this:  

 

I have a table of "Boxes" that is related to a child table of "Items" via the key field pk_box. However, boxes are also grouped by box color (say red, green, blue, etc.).  

 

On a layout of item records, I have placed sub-summary parts that appears when records are sorted by color and pk_box.  On this summary part, a summary or calculated field can display the number of items in the found set for each box color.

 

What puzzles me, is how to calculate the number of boxes of a particular color and list this in the summary part?  A calculation using the count() function and a self-join relationship just give the total number of boxes of a particular color, but not the number in the current found set.  

 

>>  See attached example. <<

 

Thanks. 

boxSample.fmp12.zip

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.