Can you pass a variable from a SubReport back to a main report?

I have a report with tables with one to many relationship. Header table with many detail records. The subreport is currently calculating an amount on the many to one detail table and I would like to pass that figure back to the main report for further use.

Any help will be appreciated.

Thanks