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.

problem with multiple values (calculation)

Featured Replies

  • Newbies

I have following fields in my database : [Price], [Price1], [Price2], [Price3], [Price4] and [Qty].

Here is my problem:

If [Qty] is between 1 and 19, [Price] should display value from [Price1].

If [Qty] is between 20 and 40, [Price] should display value from [Price2]...etc.

Sounds easy, but my mind is empty after too many attempts.

Please help.

Hi jukuri,

Try this and see if it does what you want.

Case(

Qty <= 19, Price1,

Qty >= 20 and Qty <= 40, Price2,

Qty >= 21 and Qty <= 50, Price3,

Qty >= 51 , Price4,

"")

HTH

Lee cool.gif

  • Author
  • Newbies

ALL RIGHT ,

It really did help.

I changed "," to ";" , like this:

Case(

Qty <= 19; Price1;

Qty >= 20 and Qty <= 40; Price2;

Qty >= 21 and Qty <= 50; Price3;

Qty >= 51 ; Price4;

"")

Now it works just fine!

Thank You

regards

Juha

Hi Juha,

I didn't know you were using a Non-US version. Why not update your profile to reflect you location and some of the other blank info. It can help us be more accurate with our answers.

Lee

p.s. Glad you got it working.

wink.gif

You can also use

Case( not IsEmpty(Qty);

Case(

Qty < 20; Price1;

Qty < 41; Price2;

Qty < 51; Price3;

Price4;

))

Note: I think Lee meant to use Qty >= 41, not 21.

d-oh.gif

Hi JT,

I believe that you didn't mean to have the last ; in your calc.

laugh.gif

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.