Given the attached PP model. I am trying to accomplish several things:
1) Compute Contribution Margin for each order. This was accomplished by adding the following calculated columns to the OrderMaster table:
2) Create a measure that represents average contribution per order. This was accomplished by adding the following calculated measure to the OrderMaster:
3) Create a measure that represents average contribution per customer. I can sum at the customer level using a calculated column:
but an average measure, as in
does not allow me to use the fiscal date table as a dimension of this measure. (fiscal date table is linked to order master). How do create a "average" at the customer level that can be sliced by the fiscal table dimensions.
...In over my head with PP, despite much time reading tutorials and such.
The answer to this question is my ultimate need but if someone could pair that with an explanation (teach me to fish) I would be indebted (and so would my job!)
1) Compute Contribution Margin for each order. This was accomplished by adding the following calculated columns to the OrderMaster table:
Code:
Revenues = SUMX(RELATEDTABLE('SalesDetail'),'SalesDetail'[ShippedSaleAmount])
COGS = SUMX(RELATEDTABLE('SalesDetail'), 'SalesDetail'[COGSAmount)
Ship Cost = SUMX(RELATEDTABLE('Order Shipping'),'Order Shipping'[ShipCost])
Order Contribution Margin= IF([Revenues]-[COGS]-[Ship Cost] <> 0, [Revenues]-[COGS]-[Ship Cost], BLANK())
2) Create a measure that represents average contribution per order. This was accomplished by adding the following calculated measure to the OrderMaster:
Code:
Avg Order Contribution Margin:= AVERAGE([Order Contribution Margin])
3) Create a measure that represents average contribution per customer. I can sum at the customer level using a calculated column:
Code:
CUSTOMER CONTRIBUTION MARGIN = SUMX(RELATEDTABLE('OrderMaster'),'OrderMaster'[Order Contribution Margin])
Code:
:=AVERAGE[CUSTOMER CONTRIBUTION MARGIN]
...In over my head with PP, despite much time reading tutorials and such.
The answer to this question is my ultimate need but if someone could pair that with an explanation (teach me to fish) I would be indebted (and so would my job!)