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.

Featured Replies

  • Newbies

I am relatively new to Filemaker and am trying to make a simple database for taking inventory of fabrics. I have a table with the fields Quantity added, Quantity issued and Quantity in stock. I would like the Quantity in stock field to be  Quantity added - Quantity issued for the first record and for subsequent records I would like it to be Previous value of Quantity in stock + Quantity added - Quantity issued. I don't know how to do this in Filemaker. Here is a screenshot of my table as it stands now.

Table_view.thumb.jpg.7650f6cf8567e6ce547

Manage_fields_view.thumb.jpg.7cd9b9cea18

 

I can do this quite easily in Excel. In the example below, for the first Quantity in stock value, I have the cell F2 = C2. Subsequently (F3 onwards), I have the value as being F2+C3-C4 and so on.

Excel.thumb.jpg.a9a105f32ffb43fe179e8317

I'd really like to replicate this in Filemaker so that I can have an accurate value in the Quantity in stock field.

 

Edited by confusedmuch
Didn't attach pictures properly

"..is not so simple" + 1

  • Author
  • Newbies

Thank you all for chiming in. What a great community this is! I haven't had the chance to go through all the helpful links but will do so as soon as I can. Meanwhile, I was wondering if it would be possible to attack the problem this way.

Problem (recap): Replicate the Excel formula from the OP in a FileMaker Pro database to track inventory

Could this be done? Have a calculation for the Quantity in stock field such that the first record is the same as the Quantity added and the subsequent records are Previous value from Quantity in stock + Quantity added - Quantity issued

Could the If and Get commands along with the recordNumber reference be used to arrive at a solution. Let's say, If recordNumber is 1 then Quantity in stock = Quantity added, otherwise Quantity in stock = getRecord Quantity in stock-1 + Quantity added - Quantity issued 

Maybe this makes no sense at all! Just wondered if this would be possible.

Problem (recap): Replicate the Excel formula from the OP in a FileMaker Pro database to track inventory

Could this be done? 

Yes, it could be done quite easily. All you need to do is add is a calculation field cQuantity (result is Number) =

Quantity added - Quantity issued

and a summary field defined as Total of cQuantity, running. Even simpler, use just one Quantity field and enter either a positive or a negative number according to the type of transaction. Then have the summary field summarize this field directly.

The real question, however,  is whether this should be done.  Filemaker is not a spreadsheet. This method will grow slower and slower as the number of transactions increases. Moreover, summary fields summarize the current found set; if you show only some records, the summary value shown will not reflect the real situation.With a running total, the order of records is also significant.

Note also that this assumes there's only one type of material (as there is in your Excel example).

Edited by comment

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.