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

Calculate field based on found set of other table fields

Featured Replies

  • Newbies

I tried to search around for the answer, but I was not successful.

 

I have a table of records which each have a category index.  So, records are assigned a category of "001," "002," "003" etcetera.

 

I also have a category table with the category index and category label.  I am adding a field that is "categoryCount."  I would like to know the number of records in the main table assigned to each category.

 

The end goal is to have a layout that looks like this:

 

001 - "Category A" - 19 Records

002 - "Category B" - 2 Records

003 - "Category C" - 11 Records

 

I had trouble setting up the calculated value to actually count the discrete record sets.

 

Does anyone have any material to point me in the right direction?  Thanks!

I would like to know the number of records in the main table assigned to each category.

 

Ordinarily I would say define a calculation field in the Categories table =

 

Count ( YourMainTable::CategoryID )

 

but your title speaks of the found set, while the above will count all the records in your "main" table, regardless of any found set. To summarize the found set, you will need a summary field (defined in the same table), and a layout with a sub-summary by Category part.

  • Author
  • Newbies
Ordinarily I would say define a calculation field in the Categories table =

 

Count ( YourMainTable::CategoryID )

 

but your title speaks of the found set, while the above will count all the records in your "main" table, regardless of any found set. To summarize the found set, you will need a summary field (defined in the same table), and a layout with a sub-summary by Category part.

 

I think actually that what you first said would be fine.

 

What would the calculation syntax look like?

 

Thanks!

Exactly as Comment wrote it.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.