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.

Calculation field based on a a set of related records

Featured Replies

Hi Everyone,

I am wondering what is the best way to solve this problem...

I have a table called Stocktake which has a portal linking to a table called stlineitems via a relationship with two fields representing month&year.

However, the stock exists in several locations and I want to be able to report per location. So I have a field in stlineitems called "Depot" where you select whether the machine/stock is located at the main warehouse, or at any satellite depot. However, I then require some unstored calc fields in my main inventory table representing for example, how many machines of type X exist at a particular location - such as Scotland etc.

How could I work out the total quantity of machines of a particular type in a particular location? Given that all the records for all the machines in all locations are in one table.

All help would be greatly appreciated.

Best Regards,

Jason V.

This seems like it should be handled as a report. You can create a subsummary based on your stlineitems table, grouped first by the location and then itemID.

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.