Solved

SSRS:  Subreport Does Not Display Correctly in the Main Report

Posted on 2013-12-27
6
1,200 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
[X]
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
  • 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

Industry Leaders: 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!

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

738 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