Skip to Content
avatar image
Former Member

sub report total

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? 

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 12, 2015 at 12:34 PM

    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


    Add comment
    10|10000 characters needed characters exceeded