I have a report that prints totals of costs for clients and their projects. So I have 2 group fields. In the Details section, I have the field Cost.AMT and am summing this for every project. The Client has a condition, if the amt is larger than 1000 add it to total.
I created another formula and placed it next to the Sum of Amount field for projects. This formula contains the following:
Now in the Client section I put a formula that should display the total in the variable I am using
But this only displays a zero. I've also tried declaring the variable as Global NumberVar Tot, but that desn't change my result.
While in the Projects Group, the variable is incremented when I preview as I have a last entry of something like 29,204.95 and this is what should display at the Client level. What am I doing wrong?
I think I'll go try a running total, but I am still interested in your thoughts...
Vic
I created another formula and placed it next to the Sum of Amount field for projects. This formula contains the following:
Code:
NumberVar Tot;
If Sum({Cost.Amt},{Client.Name}) >= 1000 then
Tot := Tot + Sum({Cost.Amt},{Client.Name})
else
Tot := Tot
Now in the Client section I put a formula that should display the total in the variable I am using
Code:
NumberVar Tot;
Tot
But this only displays a zero. I've also tried declaring the variable as Global NumberVar Tot, but that desn't change my result.
While in the Projects Group, the variable is incremented when I preview as I have a last entry of something like 29,204.95 and this is what should display at the Client level. What am I doing wrong?
I think I'll go try a running total, but I am still interested in your thoughts...
Vic