Solved

Reporting Services Passing Sum from subreport to Main report

Posted on 2009-07-14
4
943 Views
Last Modified: 2012-05-07
Hello experts,

I have a report that I created with a few subreports.  I would like to pass the sum from various columns in the subreport to the main report to do some calculations.  Is there anyway I can accomplish this?  Either via passing it as a parameter or set a string somewhere and pass that?
0
Comment
Question by:holemania
[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
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Emes
ID: 24852038
You can do this by selecting the expression component.

Then select the data source you want the sum  from.

Then select the data field.

Please note you can only take sums and first field from another Data source.

 


DATAS.bmp
0
 

Author Comment

by:holemania
ID: 24853196
That would've work if I created multiple datasets within the same report.  However, the way how I create my report, I setup the main report and then from that main report, I created several sub reports.  Each sub report has its own dataset.  Now I can pass the ID from the main report to the other subreports as parameter.  However, I need to pass the sum of these subreports back to the main report for calculations and that's where my problem is.  

I can take each dataset from each of the subreport and put it in the main, but that would mean I have to recreate all the calculated fields and there's a lot of those.  Any thought?  What about property code section?  Can that be done to pass a shared variable?
0
 
LVL 14

Accepted Solution

by:
Emes earned 500 total points
ID: 24853476
If you cut and paste the tables into one report why do you have to recreate the fields?

even if you do I would take the xml code and the do a search and replace on it if you have the same dataset names.

either way I would put everything into one report so you have easy access to all the needed data.
0
 

Author Comment

by:holemania
ID: 24870726
I think it could work if I create everything on the main page.  I'm just used to doing this in crystal report via creating subreport and passing data back and forth.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tracking a Database Lock - SQL 2014 10 51
SSRS - Date Report Options 2 52
SSRS 2008 Jump To Report 4 54
Section based report in SSRS 14 24
In this short article I will be talking about two functions in the SQL Server Reporting Services (SSRS) function stack.  Those functions are IIF() and Switch().  And I'll be showing you how easy it is to add an Else part to the Switch function. T…
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

737 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