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.

A Simple Math Calculation in the Define Field

Featured Replies

In this example if have 3 simple number fields and 1 calculation field.

A--number

B--number

c--number

AA-- Calculation

Problem: (B*C)+A=AA

what i would like is if A=0, then i want AA to be 0, otherwise follow the calculation. I would like this requirement to be included in a define situation and not a script, and i am willing to add fields to make this situation work out. I tried taking another field say BB and multipling A and then dividing by A, however when you divide by zero in filemaker it gives an error or the question mark, just like a calculator (E).

any suggestions would be greatly appriecated.

Thanks

Corey

Corey:

Use Case[] to weed out the ones where A=0. I think it goes like this: Case [A=0; AA=0; AA=(B*C)+A]

-Stanley

Hi AFK,

How about :

Case(A=0, 0, B*C+A)

Lee

cool.gif

AA = ( A notequal.gif 0 ) * ( A + B * C )

or

Abs ( Sign ( A ) ) * ( A + B * C )

  • Author

I didn't think of the Case function, It works great!,

Thanks to Stanley, Lee Smith, and Comment for your help on this matter.

My actual calc. involves a few more items but this was the heart of it, and took care of my problem.

Thanks again guys,

Corey

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.