Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
mblocker1
Posts: 14
Registered: 03-30-2009
0

Is there any way to use a total from a subreport in calculation on main report?

Is there any way to use a total from a subreport in calculation on main report?

Super Contributor
Posts: 1,462
Registered: 11-03-2008
0

Re: Is there any way to use a total from a subreport in calculation on main report?

Yes, you can do this using a shared variable.

Sage MAS Partner
robertcwood
Posts: 294
Registered: 11-03-2008

Re: Is there any way to use a total from a subreport in calculation on main report?

What you have to do is create a formula in the subreport something like this:

 

WhilePrintingRecords;
Shared CurrencyVar myTotal := Sum ({Orders.Order Amount})

 And in the main report create a formula something like this:

WhilePrintingRecords;
Shared CurrencyVar myTotal;
myTotal

 

Robert C. Wood aka bertowud
DDF Consulting, Inc. and 90 Minds Member