In my report I need to calculate the difference between two other values. One of the values is a formula:
@TC_OnHand
If {ssinvent.uomcost} = 'M' Then
({ssinvent.onhand} * {ssinvent.avgcost}) / 1000
Else
If {ssinvent.uomcost} = 'CWT' Then
({ssinvent.onhand} * {ssinvent.avgcost}) / 100
The other value is a SUM of @Total_Cost
@Total_Cost
If {ssinvent.uomcost} = 'M' Then
({bbinvmov.committed} * {ssinvent.avgcost}) / 1000
Else
If {ssinvent.uomcost} = 'CWT' Then
({bbinvmov.committed} * {ssinvent.avgcost}) / 100
So my difference formula (known as @OnHand_Allocated_Diff):
{@TC_OnHand} - Sum ({@Total_Cost}, {bbinvmov.matno})
CRW won't let me SUM the @OnHand_Allocated_Diff formula. Any suggestions?
TIA,
Rena
@TC_OnHand
If {ssinvent.uomcost} = 'M' Then
({ssinvent.onhand} * {ssinvent.avgcost}) / 1000
Else
If {ssinvent.uomcost} = 'CWT' Then
({ssinvent.onhand} * {ssinvent.avgcost}) / 100
The other value is a SUM of @Total_Cost
@Total_Cost
If {ssinvent.uomcost} = 'M' Then
({bbinvmov.committed} * {ssinvent.avgcost}) / 1000
Else
If {ssinvent.uomcost} = 'CWT' Then
({bbinvmov.committed} * {ssinvent.avgcost}) / 100
So my difference formula (known as @OnHand_Allocated_Diff):
{@TC_OnHand} - Sum ({@Total_Cost}, {bbinvmov.matno})
CRW won't let me SUM the @OnHand_Allocated_Diff formula. Any suggestions?
TIA,
Rena