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.

Calculation help

Featured Replies

I'm still learning the FM calculation syntax...it just hasn't clicked yet. I have a simple problem that needs a simple solution (to anyone but me).

I have a calculation field in one table that needs to return a total COUNT of records from another related table If the records in the other table are = "enter text here."

I've been messing around with a few different functions, but I can't get it right. Help is much appreciated!

...needs to return a total COUNT of records from another related table If the records in the other table are = "enter text here."

If a determined field of the related record as that string inside, than you have to count that record

[color:red]OR

whatever field contains that string, than you have to count that record ???

  • Author

That makes sense. However, writing the calculation is still stumping me. I keep getting errors in my script when I try to save it or it returns nothing at all which leads me to believe I'm going about it all wrong. Do you have a suggestion?

Hi mcinfly

my post was a question !

Row 1 or Row 2 ?

  • Author

Row 1

So two fields in the related file:

Trigger - calc field and calc:

Case(

yourTextField = "enter text here" ;1;0

)

Count - summary field (count of trigger)

  • Author

That worked like a charm! I was so close to it on my own too. Oh well, one more thing for me to store in my mental FM library. Thanks for all your help!

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.