Solved

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

Posted on 2008-10-09
7
1,908 Views
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.
0
Comment
Question by:aisinfo
  • 4
  • 3
7 Comments
 
LVL 59

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.

http://aspnet.4guysfromrolla.com/articles/073003-1.aspx
0
 

Author Comment

by:aisinfo
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?
0
 
LVL 59

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. :)

http://www.dotnetjunkies.com/Tutorial/2F527E21-A6C5-497A-8B56-4150BDAF711D.dcik
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:aisinfo
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.
0
 
LVL 59

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. :)

http://www.simple-talk.com/sql/learn-sql-server/beginning-sql-server-2005-reporting-services-part-1/
0
 
LVL 59

Accepted Solution

by:
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. :)
0
 

Author Closing Comment

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

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
View SQL 2005 Job package 16 70
date diff with Fiscal Calendar 4 54
RLDC Reporting in Visual studio 11 30
Code enhancement 4 21
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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