S
sean w
I need to write a query that will return a specific avg depending on the
demand of a specific item. I have parts that are purchased over time and
some are at different prices. I also have demand for this part. What I would
like to see is the part number's "weighted average" based on the demand
given. The demand is housed in a seperate table as is the FIFO prices. In
excel this is a long string of IF statements to come up with the weighted
average. Here is an example of what I would like the out put to be.
p/n [total demand] say 500 pieces, purchased parts at 200 @ $10.00, 200 @
$15.00 and another 200 @ $20.00. A straight WA is $15.00, however with the
not using all of the last group @ $20.00 I would need to calculate what 500
pieces WA would be. We call it the consumption weighted average and wasn't
sure if this was possible in Access.
demand of a specific item. I have parts that are purchased over time and
some are at different prices. I also have demand for this part. What I would
like to see is the part number's "weighted average" based on the demand
given. The demand is housed in a seperate table as is the FIFO prices. In
excel this is a long string of IF statements to come up with the weighted
average. Here is an example of what I would like the out put to be.
p/n [total demand] say 500 pieces, purchased parts at 200 @ $10.00, 200 @
$15.00 and another 200 @ $20.00. A straight WA is $15.00, however with the
not using all of the last group @ $20.00 I would need to calculate what 500
pieces WA would be. We call it the consumption weighted average and wasn't
sure if this was possible in Access.