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.

Add/Divide Sum() and such ...

Featured Replies

I need serious help. No, I mean with FileMaker :jester:

I have a relationship based upon numeric-date range key Products::cNumDteRange = LineItems::cNumDteShip AND Products::ProductID = LineItems::ProductsID

Request: On each Product, look backwards one month from today (only counting workdays). Get sum total of quantity sold from two fields: Quantity (positive number) and ReturnedQty(negative number). Divide sum sold by workdays to determine (on average) how many are per workday (based upon the past month). Look at our Inventory and project out the DATE we will run out of product.

I have calc called cSoldPerDay1Mo (number) of:

Div(Sum(LineItems::Quantity) + Sum(LineItems::ReturnedQty) ; cWorkDays)

I have field called cProjectDteOut (date) of:

Get(CurrentDate) + Div(cSumInventory ; cSoldPerDay1Mo)

I get a question mark in my final date field! And is there a way improve this thinking? It feels very clunky to me. I dislike calcs that work on calcs but I don't know how else to approach it. :crazy2:

LaRetta

I get a question mark in my final date field!

I'll bet that one of the Div's are dividing with zero, which doesn't make the OS crash as you would have had it if attempting the same in c++, however; filemaker is polite, knowing that such errors occures among laymen, frequently and shows a ? instead.

I dislike calcs that work on calcs but I don't know how else to approach it.

Yes you do, make a series of let statements in one single calcfield!!!

--sd

  • Author

Good morning, Soren!

Okay, I'll try to figure what is wonky with my Div()s.

make a series of let statements in one single calcfield!!!

But I need two fields - one showing number sold per day and the other showing the projected date we'll run out. But I agree. It feels convoluted and I'll focus on a alternate attack. Thanks!

LaRetta

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.