Using Crystal XI
SQL Server DB
I have been asked to modify a report that includes 4 groups:
Company, Location, Location2, Material...built on stored procedure.
Location A
ProdID LTMUsage EndInv UnitCost Value >12MosUsage Value
375 0 44 18.25 803 44 803
470 -1304 168.75 15.76 2659.50 0 0
510 0 249.60 18.25 4555.20 249.60 4555.20
645 -818 298 17.75 5289.50 0 0
LOC TTL -2122 760.35 NA 13307.20 NeedTTL NeedTTL
The >12MosUsage and Value are the two columns I have added based on conditional formulas:
if Sum ({@EndingQTY}, {orptOMGINSummInventory;1.Material})+Sum ({@ProdUsageQTY}, {orptOMGINSummInventory;1.Material})
<=0
then 0
else Sum ({@EndingQTY}, {orptOMGINSummInventory;1.Material})+Sum ({@ProdUsageQTY}, {orptOMGINSummInventory;1.Material})
AND
if {@12 Mos Usage MATERIAL}>=0
then {@12 Mos Usage MATERIAL}*{@UnitValue}
else 0
I placed these formulas at the Material level and they work fine. However, I can't figure out how to get a sum at the Loc group level.
I'm sure there is a way to do this, but I am totally blocked and have a deadline to complete. Can someone get me on the right track?
Thanks...
SQL Server DB
I have been asked to modify a report that includes 4 groups:
Company, Location, Location2, Material...built on stored procedure.
Location A
ProdID LTMUsage EndInv UnitCost Value >12MosUsage Value
375 0 44 18.25 803 44 803
470 -1304 168.75 15.76 2659.50 0 0
510 0 249.60 18.25 4555.20 249.60 4555.20
645 -818 298 17.75 5289.50 0 0
LOC TTL -2122 760.35 NA 13307.20 NeedTTL NeedTTL
The >12MosUsage and Value are the two columns I have added based on conditional formulas:
if Sum ({@EndingQTY}, {orptOMGINSummInventory;1.Material})+Sum ({@ProdUsageQTY}, {orptOMGINSummInventory;1.Material})
<=0
then 0
else Sum ({@EndingQTY}, {orptOMGINSummInventory;1.Material})+Sum ({@ProdUsageQTY}, {orptOMGINSummInventory;1.Material})
AND
if {@12 Mos Usage MATERIAL}>=0
then {@12 Mos Usage MATERIAL}*{@UnitValue}
else 0
I placed these formulas at the Material level and they work fine. However, I can't figure out how to get a sum at the Loc group level.
I'm sure there is a way to do this, but I am totally blocked and have a deadline to complete. Can someone get me on the right track?
Thanks...