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.

Analyzing a Set of similar records.

Featured Replies

Here is the fun question of the day...We have a multiple database filemaker sales solution and what I need to do is create a report listing the quantity of sales of one item per month. We have a line items file which contains a record for each time the item was sold. I was thinking that I needed to setup another database and have four fields in it, one the item number (in which I would create a relationship to the line items file using this field) a date from field, a date to field, and also the amount sold field. In the amount sold field, there would be a calculation that would use the date from and the date to field range and use that as the range on the line items database to determine how many of that item was sold on that range... Any help on developing that calculation? [color:"blue"]

Hi Austin,

Why would you need a separate file for this.

You surely have a Line Item.

That's where you can count how many products you sold with either :

- Sum(::Line Item:Quantity Sold) -- which leads to a total quantity sold

- Count(::Line Item:Product_Id) ---which leads to a count of occurances

About the monthly report, you would need a calculation for the right side (in the line item) of type Product_Id & "-"& Month(Invoice Date)&"-"&Year(Invoice Dtae)

You now understand that you need a similar calculation in your Product File.

These two keys would be used for a new relationship

There are though different solutions I could think of.

The first one would be a global populated with a value list (even custom) of 12 numbers and a calculaton Product_Id & "-"&global&"-"&Year(Status(CurrentDate))

Then, you'll have a dynamic display of your datas, using the value list.

Another solution would be to use 12 globals and 12 calculations and 12 relationships, having therefore a "statistical" display of your sales, even implementing cross calculations (not recommanded though).

Then, the new calcs would look like

- Sum(::New Relationship(s)ToLine Item:Quantity Sold) -- which leads to a total quantity sold

- Count(::New Relationship(s)ToLine Item:Product_Id) ---which leads to a count of occurances

Hope I understood your querry.

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.