I would love to help, but you would need to get me up to speed.
Main Topics
Browse All TopicsI have report with a table and two nested tables in the footer of the main table. The report is providing sales information for different retail outlets. The idea being that the main table summarises information about the retail outlet and the two nested tables show details of current retail activity and future retail activity for the retail outlet identified in the main report.
The table is set up as follows:
Report Header
Report Body
Parent Table
Table Group (repeats and new line after group, grouping on a dataset field value)
Table Footer Row 1 - nested table 1 (filtered on date parameters)
Table Footer Row 2 - blank row (to allow spacing between nested tables
Table Footer Row 3 - nested table 2 (filtered on date parameters)
Report Footer
There is no detail row in the parent table.
Users select a variety of parameters to choose the retail outlets for review and can choose one, more or all of the outlets.
I am using the same dataset for all data regions (there is no need to really split up the datasets as the only difference between the current and future sales figures is the date they occur, all other fields are the same so there's no data redundancy by combining the queries).
When I run the report for a single retail outlet all works perfectly. However, when I try to choose multiple retail outlets, the information for all outlets is combined and repeated on each page, i.e. I am grouping the main table by the retail outlet name, however, the current/future sales are being driven by the report parameters selected and not the retail outlet of the main report.
I believe I can achieve what I want by using sub reports but for scalability and performance I would prefer not to use sub reports (most places including MSDN suggest that data regions should be used in preference to sub reports).
I had thought to create a filter for the nested tables but I can't quite see how to get the correct value, I tried adding a filter to compare the retail outlet name field in the nested table to the reportItem containing the retail outlet name in the main report but I can't use ReportItems in filters. I think it must be because the grouping I am using on the table isn't passing down to the footer of the table where I have the two nested tables.
Any help would be gratefully received.
Thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I am trying to create a report with a report header, a group header and two nested tables that provide detailed information about the item in the group header.
The group header is the name and other details e.g. address about a specific retail outlet and the two nested tables are showing sales before a specified date (passed as a parameter) and after a specified date.
I am using the same dataset for all data regions. The nested tables have filters to get the relevant information e.g. sales less than or equal to XX/XX/XXXX and sales greater than XX/XX/XXXX respectively. I don't want to use subreports as they are too inefficient for what I need to do.
I have tried two different approaches firstly using a table as the containing data region and secondly, when I couldn't get the table version to work, using a list. I am using SSRS 2005.
With the table, the group heading worked perfectly but the nested data was amalgamated together i.e. sales data was appearing for all retail outlets in each table - the grouping obviously wasn't being applied.
In the second approach, the grouping was being applied to the detailed sales information but when there were no records being returned or no records returned in the first table, the group header was not displayed. If the retail outlet had sales information in both tables the header and all sales information was exactly as it should be.
I am really frustrated with this as I have no idea what I'm doing wrong and despite having trawled through every possible article or book I can find I clearly don't fully understand the processing that's going on.
I would be eternally grateful if you could help in any way.
I should add I need to have a page for each retail outlet regardless of whether or not there are past or future sales. I would simply have the group heading and then an empty table for past sales and future sales in these cases.
In instances where there are no sales I have done an outer join in SQL which just generates the relevant retail outlet data with NULL (so nothing as far as SSRS is concerned) values for all the sales columns.
Here you go. Thank you.
So to summarize. When I use a table grouped on Outlet name. I would get all the current sales listed under 25 Conduit Street, not just the ones for 25 Conduit Street. The nested tables are in the footer of the container table that has the Outlet Name, Budget Sales Percentage and Number of Staff as the group header for the containing table.
I have been able to generate the report without using any nested tables and applying two levels of grouping namely on:
Thank you for trying to help me.
Business Accounts
Answer for Membership
by: lilycollinsPosted on 2009-03-13 at 11:02:28ID: 23882031
I am able to create the functionality I want to have to a point using a parent list rather than a parent table (although I would still love to know what I am doing wrong with my table approach, I suspect there's an issue somewhere with grouping although the parent table is grouped).
But only to a point.
The tables I am nesting have the same underlying dataset, but different filters to restrict the data for each. So the first nested table gets the rows before a specified date (captured using parameters) and the second nested table gets rows after the specified date.
I have a rectangle in the list that contains information about the retail outlet - essentially the group header. If the nested tables return no rows or only the second table has rows returned, the information in the list header is blank. I have no filter on the list only filters on the nested tables.
If data is returned for both nested tables the header information in the list shows up correctly.
Am I missing the point with this?
Subreports are really not an option as the performance is horrendous.