Solved

SSRS:  Subreport Does Not Display Correctly in the Main Report

Posted on 2013-12-27
6
1,177 Views
Last Modified: 2014-01-22
Hello:

Attached are .rdl files.  One is my main report, while the other other is my subreport.  The main report's name is a misnomer as I entitled it "POOR_RCG_Subreport.rdl".  But, it is the main report and not a subreport.  It's a long story.

Anyway, the subreport is showing the correct dollar figure, when run.  But, when I run the main report containing this subreport, the dollar figure is incorrect.

The dollar figure is $3,050,630.  This is showing correctly in the subreport.  But, when the subreport is placed in the main report, the dollar figure instead shows as $669,749.

What's happening is that the subreport in the main report is taking the dollar figure from the first record in the main report.  Instead, I simply want the dollar figure from the subreport to show in the main report without being "influenced" by data on the main report.

Can someone please take a look and let me know how to fix this, so that the subreport displays the correct dollar value in the main report?

Thanks!  Much appreciated!

TBSupport
POOR-RCG-Subreport.rdl
POOR-RCG-Detail-Subreport3.rdl
Subreport-Problem.docx
0
Comment
Question by:TBSupport
  • 3
6 Comments
 
LVL 27

Expert Comment

by:planocz
ID: 39743645
Why are you running a subreport just for totals?
It should be in the main report.
0
 
LVL 1

Author Comment

by:TBSupport
ID: 39744123
The subreport is an offshoot of another subreport.  It's a long story.  

The main reason is that I cannot "combine" the programming of the main and subreport.

Again, long story short, I need this separate subreport just the way it is.  And, I need to make this all happen ASAP, since I'm on a tight deadline with this customer.

TBSupport
0
 
LVL 1

Accepted Solution

by:
TBSupport earned 0 total points
ID: 39753777
Hello:

Yesterday, I figured this out, just now, on my own.  Instead of placing the subreport in the main report, I mimicked the subreport by creating a new "second main report".

So, you may close this case out.  My solution is the correct one, ultimately.

Thanks!

TBSupport
0
 
LVL 1

Author Closing Comment

by:TBSupport
ID: 39799506
This solution gave our customer exactly what they wanted in the report.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Error in WHERE Clause 5 38
Help with SQL Server Stoplist 2 16
Sql Count with Select Distinct 4 26
ms sql last 8 weeks as columns 5 24
In this article I will describe the Detach & Attach 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.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now