I am attempting to create a master report that uses separate subreports as detail because each PrGrp has a number of separate detail reports. If we call the top (overall across all offices) group phOrg and the second grouping PrGrp and the detail (within the subreport) PCP.The master report has a header and one field (PrGrp) only. The rest of this report will have 27 subreports. Each subreport in based on a separate metric. For testing and development I'm only using two subreports in the master for speed and simplicity.I am stumped by the requestor's need to have the grand total , across all PrGrps within the PhOrg to be displayed in each subreport under the PrGrp totals. In other words, the master should produce one PrGrp's 27 detail reports before it moves to the next PrGrp. I am essentially trying to enclose a higher level grouping (PhOrg) within a lowed level grouping (PrGrp).The grandtotals just print as a duplicate row of the PrGrp totals. I have been trying to solve this for days. If I make a single report thatgroups by PhGrp, the PrGrp, with PCP, the grand total overall will print under the PrGrp. I accomplished this by SUM(metricname.Value) outside of any grouping and then above it I use ReportItems!TextBoxnn.Value to refer to the cell right below it. I'm including a screen print of a single report (no master-detail) that works (gives grand total across all practices but I had to trick it by using ReportItems! as described above and hiding the external values).[img]http://www.sqlservercentral.com/Forums/Attachment17423.aspx[/img]The needed report with master detail would have Practice(PrGrp) produce all the detail (provider/PCP) for that PrGrp for each metric (Asthma shown in example. (very doable) BUT I need the grand total across all PrGrps (The whole PhOrg) under each grid. In the example it's the last printed row that is 1,475 and 25.070, and 5.88%, ....,12.2%Is this possible? Thank you for reading and any insight you can provide.
↧