How can I display Subtotals by page on a RDLC report in Sql Reporting Services?

Posted on 2008-10-09
Last Modified: 2013-11-08
I want to show the whole total and then the subtotal of the current page at the end of each page, I have the whole total, but the subtotal I just can't do it.

Please help.
Question by:aisinfo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 60

Expert Comment

by:Kevin Cross
ID: 22690291
Since no one else has jumped in yet, let me suggest trying querying WITH ROLLUP.  It will give you subtotal and total by your query groupings.

Author Comment

ID: 22690319
Thanks for your suggestion mwvisa1, but what I need is a subtotal per page, I dump all the data into the report and on the table footer do a SUM to get the total, how do I get the subtotal of each page of the report?
LVL 60

Expert Comment

by:Kevin Cross
ID: 22690328
I am not an expert on SQL Reporting, so offering help with SQL Server and .NET best I can.

You can also leave query as is and use .NET to calculate the totals and subtotal.  Here is an example method that captures Item Data Bound of grid to get totals.  Since you mentioned current page, I would suspect you have pagechange code you can hook onto -- basically have two variables that act like running total but one gets 0'd on page change. :)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 22690346
The problem I have is not on the ASP.NET code, I have all that, I use LINQ to get everything I need on the ASP.NET side. on the .RDLC report is my problem.
LVL 60

Expert Comment

by:Kevin Cross
ID: 22690359
Here is article for SQL Reporting Services.  As I said, I have not used a great deal yet.  I wish I had, but application was stuck on other reporting...can't wait to re-install with SQL 2008 end of this year. :)
LVL 60

Accepted Solution

Kevin Cross earned 500 total points
ID: 22690384
Sorry was thinking through steps to provide you with what you needed since I was just taking a stab for you since no one else responded yet.  Figured you wanted SQL Reporting Services. :)

Anyway, everything I have read suggests that you can create subtotals by just right-clicking and picking option from context menu.  They talk about formatting subtotals there and so hopefully you get enough information on creating them in the first place too. :)

Author Closing Comment

ID: 31504840
Thanks a lot man, at least I got some info!

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question