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.

Featured Replies

I have this problem on how to get the nearest price.

I have field qty and price ex. qty 100 price $41 and qty 250 price $39.

how to calculate to get the correct price if i enter 105 i should get 39

More info needed, but maybe you can use an auto-enter calc on the price with a case formula to account for your price points.

If I understand your question correctly (which is not at all certain), you want to lookup the price from a Prices table, using a relationship based on both ProductID and Quantity - see:
https://fmforums.com/topic/107383-sliding-scale-for-pricing/?do=findComment&comment=484356&_rid=72594

But your example does not make sense to me, because if the minimum quantity for the price of $39 is 250, then for the quantity of 105 you should be getting a price of $41, not $39.

 

36 minutes ago, Steve Martino said:

maybe you can use an auto-enter calc on the price with a case formula to account for your price points.

That is not a good idea. Prices change over time and hard-coding them into calculation formulas is not good practice.

 

 

  • Author
On 10/19/2022 at 9:34 PM, comment said:

If I understand your question correctly (which is not at all certain), you want to lookup the price from a Prices table, using a relationship based on both ProductID and Quantity - see:
https://fmforums.com/topic/107383-sliding-scale-for-pricing/?do=findComment&comment=484356&_rid=72594

But your example does not make sense to me, because if the minimum quantity for the price of $39 is 250, then for the quantity of 105 you should be getting a price of $41, not $39.

I think this is the correct answer, I was looking other way around. Another question is what if i enter 40 i should get price of $41

1 hour ago, archrid404 said:

Another question is what if i enter 40 i should get price of $41

I am sorry, but you will have to explain your logic in more detail. If you are trying to define your price breaks by the maximum rather than the minimum quantity, then you will have a problem defining the last (lowest) price brake's maximum quantity. Strictly speaking, it should be infinity - which cannot be expressed in Filemaker. And an arbitrary high number is not good practice, IMHO. But technically, it's possible - you only need to reverse the  relational operator to .

 

Edited by comment

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.