I am using Crystal XI. I have the following table set up...
PH Carrier Quantity Add/Subtract NewTotal
GH1 ALVP 200 (100) 100
GH1 RDWY 100 0 100
I need to use the the "Add/Subtract" value (100) from the ALVP row and add this to the RDWY Quantity to receive a NewTotal value of 200 for RDWY.
Desired Output:
PH Carrier Quantity Add/Subtract NewTotal
GH1 ALVP 200 (100) 100
GH1 RDWY 100 100 200
Add/Subtract column formula; also referenced in NewTotal formula as {@RoadwayShipperLifts}:
If {@T/F RoadwayShipper} = "True" then({WMTRANSACTIONDETAIL.QUANTITYACTUAL})
NewTotal column formula:
If GroupName ({IDMASTER_CARRIER.IDENTITYID}) = "ALVP" then
(Sum ({WMTRANSACTIONDETAIL.QUANTITYACTUAL}, {IDMASTER_CARRIER.IDENTITYID}) - Sum ({@RoadwayShipperLifts}, {IDMASTER_CARRIER.IDENTITYID}))
else Sum ({WMTRANSACTIONDETAIL.QUANTITYACTUAL}, {IDMASTER_CARRIER.IDENTITYID})
Any help will be greatly appreciated!!!
PH Carrier Quantity Add/Subtract NewTotal
GH1 ALVP 200 (100) 100
GH1 RDWY 100 0 100
I need to use the the "Add/Subtract" value (100) from the ALVP row and add this to the RDWY Quantity to receive a NewTotal value of 200 for RDWY.
Desired Output:
PH Carrier Quantity Add/Subtract NewTotal
GH1 ALVP 200 (100) 100
GH1 RDWY 100 100 200
Add/Subtract column formula; also referenced in NewTotal formula as {@RoadwayShipperLifts}:
If {@T/F RoadwayShipper} = "True" then({WMTRANSACTIONDETAIL.QUANTITYACTUAL})
NewTotal column formula:
If GroupName ({IDMASTER_CARRIER.IDENTITYID}) = "ALVP" then
(Sum ({WMTRANSACTIONDETAIL.QUANTITYACTUAL}, {IDMASTER_CARRIER.IDENTITYID}) - Sum ({@RoadwayShipperLifts}, {IDMASTER_CARRIER.IDENTITYID}))
else Sum ({WMTRANSACTIONDETAIL.QUANTITYACTUAL}, {IDMASTER_CARRIER.IDENTITYID})
Any help will be greatly appreciated!!!