Hi,
I have the following related entities:
[ProductFromSupplier]-->[Product]-->[ProductForProject]-->[Project]
each with a one to many relation.
I wish to achieve the following rollup fields in order to calculate the total cost for products assigned to projects:
- a [ProductFromSupplier] has the currency field [Price] in which a static amount is entered.
- a [Product] has a field [AveragePrice] which should hold the (rollup) calculation of the average price of all related [ProductFromSupplier]
- a [ProductForProject] has a field [quantity] and a (rollup) field [TotalPrice] which should be [Product.AveragePrice]*[Quantity]
- a [Project] has a (rollup) field [TotalProjectPrice] which should be the Sum of all [ProductForProject.TotalPrice]
I have difficulties on setting this nested rollup calculation: it seems that I cannot create a rollup field of another rollup field, but then, how can I achieve this anyhow?
Thanks,
Koen