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

I am working in Filemaker Pro Advanced 8 on a Mac OSX 10.6.8.

 

The database is fairly straight forward: it is tracking the total number of comments (all types) and the sub total of online comments at a federal website on a new TSA regulation.

 

4 Data Fields: Month, Day, Total Comments and Online Comments (a subtotal)

 

Records are sorted by concatenating the numbers in a calculation field with the month and day fields.

 

This data is exported to a tab separated file and imported into Adobe Illustrator to make pretty charts.

 

All is well, so far...

 

Recently, we have found that there is something suspicious about the numbers supplied on the federal site, mainly that the subtotal daily increase exceeds the total comment increase.

 

To show this clearly and chart it out, I created 2 calculation fields plus functions, to find the difference between the current day and the previous day.

 

 

Comment Total - GetNthRecord(Comment Total;Get(RecordNumber)- 1)

 

and

 

Comment Short - GetNthRecord(Comment Short;Get(RecordNumber)- 1)

 

They work beautifully except for one problem: some of the day's samplings are missing. The outcome is that the calculation subtracts the current number from an empty field in the previous day, creating a large negative and inaccurate number.

 

What I would like to do is have the calculation skip an empty field and find the next, previous day field that is not empty and use it for the calculation.

 

I am not quite sure how to approach this problem. Thank you for any guidance.

Edited by GarrettC

Run two finds for all records including today, and today less 1 and compare the Get(FoundCount) ?

 

Will allow for days that have no comments added...

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.