Previously you said the Subreport was placed in Group Header 1 isn't it?
The first formula should be placed in the section that prints the Main Report data. Now that the Subreport is in Group Header 2, would that be Group Header 3 or maybe the Details Section?
-Abhilash