That's correct. The lot price is an inventory item the same as the other two items. I can't post in a picture of what the data looks like but this is how it reads:
Sales Order Detail
Number
Rec No
WHSE
Code
CMTQTY
BuyUOM
UnitPrice
To set up what I have in my initial post, I have the following:
Code CMTQTY Unitprice
Then I have the formula (this brings back 25):
If Code=Lot Price, then (bring back) unit price, else 0
I need to calculate the total price for each line so I have this formula (this brings back 26.96, 9.80 and 25):
CMTQTY*Unitprice
Then subtotal these items:
Sum(Extended Price)
Sum(CMTQTY -1)
To calculate the first extended prices though (18.33, 6.66 and 17) I need to refer back to the formula that gave me the lot pricing (25), however, when I reference that field it again it does the "lookup" part again and because the ALB1 is not "lot price" it is calculating 0.00 for this whole column of information except for the "lot price"
This is how the formula calculates in excel
QTY Unit Price Extended Total Equals
Price Extended the unit
based on Price
LP of 25
ALB1 |
4 |
0 |
6.74 |
26.96 |
18.33515 |
4.583787 |
ALB2 |
10 |
0 |
0.98 |
9.8 |
6.664853 |
0.666485 |
Lot Price |
1 |
25 |
25 |
25 |
17.00218 |
17.00218 |
|
|
|
|
|
|
|
|
14 |
25 |
|
36.76 |
42.00218 |
|