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.

Questions about summary fields and the average function.

Featured Replies

Hello,

I apologize in advance as I am still very new to FM Pro.

I have been tasked with making a DB in FM Pro 11 That manages a record of Clients and Individual Contacts with those clients.

As part of the DB I have to generate reports which collect certain statistics for our funding bodies. While working on this I got a little confused and was hoping someone here could set me straight :)

As part of my brief I am having to import a a bunch of old records from an excel spreadsheet.

One key stat I have to calculate is the time interval between a contact being requested and contact actually being made with a client.

I have the two dates in the DB and a calculation field generating each interval. I then have a summary field storing an average of the interval.

The user must be able select a month and year and then get - amongst other things - a calculation of the average for that month only.

My questions:

1. How do I restrict the average to only show that for the desired month? This kind of calculation would be trivial in SQL but I can't for the life of me figure out how to do it in FM Pro ><

2. A number of the incoming date fields have non-integer values in them (people were writing comments into the spreadsheet fields). My interval calculation is currently placing an "error" comment when this occurs until I get instructions what to do with it.

I expected this to totally break the summary field however it is happily spitting out a seemingly valid average. Does it ignore strings in the field or is it performing some other calculation?

  • Author

Never min question 1 I was over-complicating what I was doing. All I had to do was make a summary field and the average adjusted on its own for my found set.

My second question stands however, what does the the average summary field do when confronted with Strings?

It tries to read the whole thing as a date which dosen't work. Personally, I'd use text manipulation to get the date and comments into separate fields or, if the comments are pointless, just replacing data in the field with GetAsDate(<<fieldName>>) should clear out those issues nicely.

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.