SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 Passing Parameters from Main Report to Sub Report
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

maxyogesh2002
Starting Member

15 Posts

Posted - 03/28/2014 :  05:14:42  Show Profile  Reply with Quote
Here is an example of what my tablix/matrix looks like and some examples of what should happen. I have the parameters in the second report setup to accept values and in the main report I have just selected the field it should pass. Since it’s a matrix and grouped, I would think if you clicked a sub total row it would know what values relate to that row.
click on below link for image:
http://tinypic.com/view.php?pic=2dhwt9j&s=8


Following examples,which define what should happen:

1.When i click on cell B3(USA) it will pass Locations name i.e USA and Customer name i.e ABC as a parameter to sub report.

2).When i click on cell B5 i.e Sub total, it will send both locations i.e. USA,Dubai and customer name i.e.abc as a parameter to Sub Report.

3).When i click on cell B10 i.e Grand Total, it will send all Customer names with there respective locations as a parameters to the sub report.

Thank You


Edited by - maxyogesh2002 on 03/28/2014 05:15:49

gbritton
Aged Yak Warrior

787 Posts

Posted - 04/07/2014 :  15:07:27  Show Profile  Reply with Quote
IN subreport, define the parameters you need. In main report, when you set up the link to the subreport, map the fields you want to the subreport parameters.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000