Skip to content
View in the app

A better way to browse. Learn more.

Learn more

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

Search

Search

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.