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.

Defining value based on calculatio

Featured Replies

Hello,

In my database I have four fields; FW, PW and PD, displaying different width measurements, and Result, displaying a value depending on a calculation of FW, PW and PD. The following alternatives should determine the value in Result:

If FW≤1/3PW, Result = A

If 1/3FW≤PW≤2/3FW, Result = B

If 1/3FW≤PW≤2/3FW; PD>1/2PB, Result = C

If PW≥2/3FW, Result = D

If PW≥2/3FW;PD>1/2PB, Result = E

Any suggestions of how I formulate this in a calculation?

If FW ≤ 1/3PW, Result = A

I think that you inverted the terms...

Didn't have to be:

If PW ≤ 1/3FW, Result = A ?

If 1/3FW ≤ PW ≤ 2/3 FW ; PD > 1/2 PB, Result = C

Where comes from: PB ?

If that is another field that you forgot to mention, you can try this calculation for result:

Case(

PW ≤ 1/3 * FW ; "A" ;

PW ≤ 2/3 * FW and PD > 1/2 * PB ; "C" ;

PW ≤ 2/3 * FW ; "B" ;

PW > 2/3 * FW and PD > 1/2 * PB ; "E" ;

PW > 2/3 * FW ; "D"

)

  • Author

Thank you very much! This worked perfectly.

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.