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

Hi guys. How can I make a calculation that accesses a previous record by date? In my database, I make a new record once a month, to update the price of an item. I need to compare this price to what it was in December of the previous year. So for example, from Jan. 2003 thru Dec. 2003, I need to compare the price of an item that month to its price in Dec. 2002. Then from Jan 2004 to Dec. 2004, I need to compare it with its price in Dec. 2003, and so on.

So how do I tell Filemaker to make a calculation based on the current value in a field, compared to its value from a specific previous record (the December record of last year)?

Thanks!

-Emery

The key is in the fact that these are price records for the same product, right?

I assume you have a ProdID field, and also a Date field for the start of the month for each record (like 11/1/2003).

You need a calculated text field that includes the product name together with the date (start of month):P

ProdID&"_"&DateToText(Date)

Then, each month's record should include a calculation (call it cLastDec1) designed to show which record it will be compared to:

ProdID&"_"&DateToText(Date-(DayofYear(Date))-30)

So every record will include a field with its product ID and the most recent Dec 1.

Then set up a self-join relation between each record and the record indicated by its cLastDec1 field.

-ESpringer

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.