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.

Problem with calculation of the quantity.

Featured Replies

I have a problem how to calculate some values.

I have 2 tables (Orders and Shapes). Orders is in a relationship with Shapes.

Copy database in the attachment.

Eeach order covers items of one shape, specify the amount of items ordered and receives status (NEW or OLD).

I'd like to know:

1. Orders in total. (xSummaryStatus)

2. OLD orders. (xSummaryStatusOLD)

3. NEW orders. (xSummaryStatusNEW)

---

4. How many items of each shape has been ordered? (TotalAmount)

5. Number of items of each shape ordered (orders with NEW status) (TotalAmountNEW)

6. Number of items of each shape ordered (orders with OLD status) (TotalAmountOLD)

Sums.zip

PS. I use FMP 11

EDIT:

I found the answer to question 1 and 4. New files in attachment

Sums2.zip

  • Author

I found a solution

If someone wants to know.

For questions 2 and 3 - I used the function "COUNTIF".

http://fmforums.com/...__fromsearch__1

For questions 5 and 6 - I used the function "TypeSumFiled".

http://www.briandunning.com/cf/894

I don't have the FM Advanced. I had to modify the code and put in "Specify Calculation"

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.