SSRS: Totaling on the Subreport and Main Report

Hello:

Attached is my SQL Reporting Services (SSRS) main report and one of its subreports.  On this subreport, I would like to have it total by vendor (the POP10100.VENDORID field).

Also, I would like for the main report to pull a "grand total" of the Past Due field for each vendor, from the subreport onto the main report.

How do I accomplish these two tasks?

In addition, I have attached a Word document showing the results of generating the report.  The first screenshot is the top half of the report, while the second screenshot is the lower half.

Thanks!

TBSupport
POOR-Past-Due-Subreport.rdl
No-Totals.docx
POOR.rdl
LVL 1
TBSupportAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ValentinoVBI ConsultantCommented:
On this subreport, I would like to have it total by vendor (the POP10100.VENDORID field).

Add a Parent (Row) Group to the table in the subreport.  Group on VendorID.  Select the Add group footer checkbox when doing this.  Then put this in the new row's textbox: =Sum(Fields!PastDue.Value)

Also, I would like for the main report to pull a "grand total" of the Past Due field for each vendor, from the subreport onto the main report.

How about putting the following in the Grand Total/Past Due textbox: =Sum(Fields!PastDue.Value)

You can't pull data from a subreport into a main report, you need to ensure that the dataset in your main report has all the data needed in the actual report.  But it seems that's the case here.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.