visual studio - How to apply parent group for multiple datasets in SSRS VS2008 -
i have been battling issue days without success. have tricky format of report need achieve main thing datasets need grouped 1 parent. i'll attempt explain...
say have dataset1, dataset2. both have accountnumber common field(parent).
i need both datasets used in format/layout of report grouped accountnumber, this.
[report header data] [accountnumber group] dataset1 dataset2 [end accountnumber group]
what best way achieve this? format of report has been major road block on grouping making me split data multiple datasets, group them accountnumber , create custom format per dataset in report. flow of report may this
[report header data] [accountnumber group] [tablix1] dataset1 [tablix1] [tablix2] dataset2 [tablix2] [end accountnumber group]
looking forward discussion on this!
there multiple ways achieve effect, , best situation depends on details of report. i'll give of techniques i've used in past:
join 2 datasets one
joining datasets 1 in query 1 of simplest answers, , works across versions of ssrs. can make sql queries large, makes report layout simple.
use
lookup(...)
functionssrs 2008r2 added
lookup(...)
function, can used access items in second dataset. it's little bit awkward use, , requires separate formula every field accessed, powerful retrieving few fields different dataset.sub reports
similar approach descibed in original question, lets create parent project 1 tablix, , place subreport within. subreport called multiple times, grouping item parameter. each run of report should return report instance of group. can powerful, maintenance difficult: have 2 places change thingss, , can require manual tweaking make sure columns line correctly. subreport fastest report run, since getting called many times.
[nb: stackoverflow.com isn't best place discussions. design of site set avoid discussion , aim towards question & answers, not discussion.]
Comments
Post a Comment