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.

Calculating across records for a given field

Featured Replies

  • Newbies

Let me premise that I have very little experience with FM, so if my question is too obvious please do not hesitate in referring me to the instructions.

Here goes: I am making, say, a database for cheese. Each cheese has different sales in different countries. I want an user to be able, for each cheese (record) to select countries from a value list, and then insert figures next to the chosen countries. This bit I should be able to do.

However, I then wish to be able to make a calculation of, say, how much all my cheeses sold for in france. I need to run something like a calculation field, that calculates across records, in a given field. What is not so simple to me is that the, say, France field, which is selected from a value list, is as far as I know unconnected to the figure placed next to it. It may be elementary, but I just can't see how to do this. If anyone can, Many Thanks.

Jan

If you only have one table in your DB. you can make a self joined relationship. relate country to country. Then make a calculation field.

sum(self relation::figures)

This is a basic option. Not knowing all the details of your DB.

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.