Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6026 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How would I parse out an array to get the current price of a product that has multiple prices based on Effective and End dates?

ie...

Price file

Effective End Price

1/01/2005... 12/31/2005 $31.00

1/01/2006... 12/31/2006 $31.50

1/01/2007... 12/31/2007 $33.00

1/01/2008... 12/31/2008 $33.50

1/01/2009... 12/31/2009 $34.00

I tried working with an If statement to test the current date against the Effective and End dates, but I am not looking at it as an array.

Posted

You can look up prices with look-up option.

Define a new table for price array. Enter dates and prices for products. Define a relationship with date field.

Open options dialog box of the price field (tha table you want to get value in, not in price table).

Select Look Up value.

Select Relationship you have just defined and select price field.

Date fields can not match exactly, to solve this select "Copy Next Lower Value" or "Copy Next Upper Value" to get price value.

F. Osman Cabi

This topic is 6026 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.