I have a report that looks at stock information, on the right hand side i have the product, then i have a variable for each branch, these are contained in the detail section, i have then grouped on the product feild, and created a subtotal for each branch.
GH1: Product SumBranch21 SumBranch22 SumBranch23
Detail: Product Branch21 Branch22 Branch23
Ive created a count feild in GH1 with a formula as follows
NumberVar Count;
If (@SumBranch21)=0 then
Count:=Count+1 else
If (@SumBranch22)=0 then
Count:=Count+1 else
If (@SumBranch23)=0 then
Count:=Count+1
There are no errors in the formula as far as i can tell, but if there are any 0's in the SumBrach?? fields it will only increment the counter once regarless if there are 2 or 3 0's.
Is this possible?
GH1: Product SumBranch21 SumBranch22 SumBranch23
Detail: Product Branch21 Branch22 Branch23
Ive created a count feild in GH1 with a formula as follows
NumberVar Count;
If (@SumBranch21)=0 then
Count:=Count+1 else
If (@SumBranch22)=0 then
Count:=Count+1 else
If (@SumBranch23)=0 then
Count:=Count+1
There are no errors in the formula as far as i can tell, but if there are any 0's in the SumBrach?? fields it will only increment the counter once regarless if there are 2 or 3 0's.
Is this possible?