
Anonymous Community User asked a question.
Lookup Relationship and Filter/Compare, return result to Calc Field
So I have an app, that captures the order, "ORDER", I have a relationship to client, "CLIENT", i have a relationship to pricing tiers, "PRICING". I want to be able to look up pricing based on tiers where my order quantity falls within that tier for that client. What's the best approach to achieve this? In "ORDER" I have a single relationship to "CLIENT", In "CLIENT" I have a multiple relationship to "PRICING", where in "PRICING" I have "From QTY", "To QTY" and "Price" i.e. for client Blue "From QTY" = 100 "To QTY" = 250 Price = $7 "From QTY" = 251 "To QTY" = 1000 Price = $5 for client Red "From QTY" = 100 "To QTY" = 750 Price = $7 "From QTY" = 751 "To QTY" = 2000 Price = $5 I want to be able to pull the price base on quantity in the order. So if order has 600, the pricing would be $5 if client Blue is on order, but $7 if client Red. Hope that made sense. Thanks in advance.