Nesting Data Regions
You can nest one data region inside another data region, typically to display data summaries in a concise manner or to provide a visual display as well as a table or matrix display.
For example, for a Tablix data region that contains sales orders grouped by Store on rows and by Quarter on columns, you can add a table or chart to the corner cell to summarize the sales for all stores, or add a chart to a matrix column header to show the sales contribution of the data in the column as a percentage of all sales.
By definition, nested data regions are based on the same report dataset. You cannot nest data regions that are based on different datasets. To display data from different datasets, consider using drillthrough reports or subreports. For more information, see Adding Links to a Report and Adding Other Report Items.
The scope for data in a nested data region is automatically defined by its placement in the parent data region. For example, the scope for data for a chart nested in a Tablix corner cell is the data from the dataset bound to the Tablix data region after the filters are applied for the dataset, the Tablix data region, and the chart data region. The scope for a Tablix nested in a Tablix cell is the same as the scope for the corner cell, but additionally scoped to the row and column group memberships of the cell in which it is nested, with the corresponding group filters applied. For more information about scope, see Calculating Totals and Other Aggregates (Reporting Services).
The following list describes the scope for cells in the following Tablix areas:
Tablix corner. The scope is the data in the data region linked to the Tablix data region, after the filter and sort expressions for the dataset and the outer Tablix are applied.
Tablix column group. The data in the innermost column group, after the filter and sort expressions for the dataset, the outer Tablix, and the column groups are applied.
Tablix row group. The data in the innermost row group, after the filter and sort expressions for the dataset, the outer Tablix, and the row groups are applied.
Tablix body. The data in the innermost group represented by the intersection of row groups and column groups, after the filter and sort expressions for the dataset, the outer Tablix, and the row and column groups are applied.
For more information, see Understanding Tablix Data Region Areas.
When you add a chart to a Tablix column group header or group footer row, or to a Tablix body cell, the data passed to the chart is scoped to the subset of data for that cell. By default, when you add a chart to a Tablix cell, the chart dimensions expand to fill the cell.
To have more control over the size of a chart in a Tablix cell, add the chart to a rectangle first, and then add the rectangle to the Tablix cell.
By default, the chart legend colors are determined by the color of the data points in the chart series. To control colors so that nested chart data regions all use the same color for the same category of data, you must use custom colors and set sort expressions on the data. For more information, see How to: Specify Consistent Colors across Multiple Shape Charts and How to: Sort Data in a Data Region (Reporting Services).
You can nest a gauge inside of a table, matrix, or list in order to show a key performance indicator (KPI). When you place a gauge inside of a table, a gauge will be rendered for each row in the Tablix. There are two ways to add a gauge to a Tablix data region:
Click inside the Tablix cell and insert a gauge. The Select Gauge Type dialog box appears. Once you have selected a gauge type, the Gauge data region is placed inside of the selected Tablix cell. You will likely need to resize the Tablix in order to format the gauge.
Click outside the table and insert a gauge. The Select Gauge Type dialog box appears. After you select a gauge type, the Gauge data region is placed in the top-left corner of the report. After you add data and format this gauge, drag and drop it inside of the Tablix cell.
Like the chart, the dataset passed to the gauge is scoped to the subset of data for that cell. When a gauge is placed inside of a Tablix cell, the gauge will always aggregate only one row of data.
When data in your Tablix contains grouping, the Gauge data region that is nested inside the Tablix does not automatically inherit this group. You will need to add matching group expressions to the gauge in order to show the same information that is shown on the Tablix. For example, if data in your Tablix is grouped by Product, you will need to add a Product grouping expression on the gauge to show the same data. For more information, see Adding Data to a Gauge Data Region and How to: Add or Delete a Group in a Data Region (Reporting Services).
You must set the minimum and maximum values that will be displayed on the gauge scale. To specify the maximum value of the gauge, you can use an expression, such as =Max!MyField.Value. However, because this expression will be evaluated within the scope of the data in the cell only, the maximum of each gauge will not be the same for all rows in the Tablix. This may make comparisons between gauges in the Tablix more difficult to understand. Alternatively, you can specify a static value for the maximum. All rows inside of the Tablix will show a gauge with this maximum value. For more information, see How to: Set a Minimum or Maximum on a Gauge.
If the data becomes too large on the gauge, consider using a scale multiplier to reduce the amount of digits displayed. To specify a multiplier, you can right-click on the scale and select Scale Properties. When the Scale Properties dialog box opens, specify a value for Multiplier. For more information, see Radial Scale Properties Dialog Box, General and Linear Scale Properties Dialog Box, General.
To nest multiple data regions in a List add a rectangle first, and then add the data regions to the rectangle.
You can define a group for a List data region, and then add a Tablix and a chart to provide different views of the same data. To achieve this effect, you must define identical group and sort expressions for the embedded Tablix and chart. By definition, the Tablix and chart use data from the dataset of the parent list data region.
By default, when you add a List data region to the design surface, the list includes a detail row. You can change this default by adding a group row and removing the detail row. For more information, see Exploring the Flexibility of a Tablix Data Region.
For more information, see Understanding Groups (Reporting Services) and How to: Add, Move, or Delete a Data Region (Reporting Services).