I'm grouping on Invoice Number. Within Invoice Number there can be multiple product codes. If there is ever a product code 80 within an invoice number I want to use one formula but if there is never a product code 80 I want to use another formula. I have tried simply saying:
IF {Line_.Pr_Code} = "80"
then {@NetCostInstalled}
else {Line_.Net_Cost})
but whether I put the above formula in the header or in the details it only reads the first product code number and basis the decision upon that and 80 might be in the third product code.
I also tried:
WhileReadingRecords;
and
WhilePrintingRecords;
with no difference. I also tried placing the formula in the group footer. I also tried
Do IF {Line_.Pr_Code} = "80"
then {@NetCostInstalled}
else {Line_.Net_Cost})
While Header_.InvNum = Group Header_.InvNum
but received an error message because the above formula was needed in another formula.
Is there a way to evaluate all the product codes within a group before performing any calculations?
IF {Line_.Pr_Code} = "80"
then {@NetCostInstalled}
else {Line_.Net_Cost})
but whether I put the above formula in the header or in the details it only reads the first product code number and basis the decision upon that and 80 might be in the third product code.
I also tried:
WhileReadingRecords;
and
WhilePrintingRecords;
with no difference. I also tried placing the formula in the group footer. I also tried
Do IF {Line_.Pr_Code} = "80"
then {@NetCostInstalled}
else {Line_.Net_Cost})
While Header_.InvNum = Group Header_.InvNum
but received an error message because the above formula was needed in another formula.
Is there a way to evaluate all the product codes within a group before performing any calculations?