Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SSRS:  Subreport Does Not Display Correctly in the Main Report

Posted on 2013-12-27
6
Medium Priority
?
1,216 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

704 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