?
Solved

Reporting Services Passing Sum from subreport to Main report

Posted on 2009-07-14
4
Medium Priority
?
955 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

765 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