cancel
Showing results for 
Search instead for 
Did you mean: 

sub report total

Former Member
0 Kudos

Is there a way of adding a total in the main report to a total in a sub report with the result shown in the main report? 

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Susan,

Yes, using shared variables.

E.g: The formula in the Main Report would be:

shared numbervar x;

x := x + {@Total_field};

Formula inside the Subreport would be:

shared numbervar x;

x := x + {@Total_field_in_Subreport};


Finally, the Grand Total formula on the Main Report would be:


shared numbervar x;


The Final Total should be in a section 'below' the section that holds the Subreport.


-Abhilash


Former Member
0 Kudos

many thanks for your prompt response - I will try it!

Answers (0)