Muokkaa

Jaa


Grouping pane

When you design Reporting Services reports, the Grouping pane displays the row groups and column groups for the currently selected Tablix data region. The Grouping pane isn't available for the Chart or Gauge data regions. The Grouping pane consists of a Row Groups pane and a Column Groups pane. The Grouping pane has two modes: default and Advanced. Default mode displays a hierarchical view of the dynamic members for row and column groups. Advanced mode displays both dynamic and static members for row and column groups. A group is a named set of data from a report dataset that is displayed on a data region. Groups are organized into hierarchies that include static and dynamic members. For more information, see Understanding groups (Report Builder and SSRS).

If you don't see the Grouping pane, then on the Report menu, select Grouping.

Cells in the row and column group areas can be static or dynamic members of a group. Static members repeat once per group and typically contain labels or totals. Dynamic members repeat once per group instance and typically contain the unique values of the group expression. As you select Tablix cells in the row group area or column group area, the corresponding group member is selected in the Row Groups or Column Groups pane. Conversely, if you select groups in the Grouping pane, the corresponding cell associated with the group member is selected on the design surface. For more information about Tablix row and column group areas, see Tablix data region areas (Report Builder and SSRS).

The Grouping pane supports the following modes:

  • Default. Use the default mode to add, edit, or delete groups. You can add parent, child, and detail groups by dragging fields from the Report Data pane and inserting them in the group hierarchy. To add an adjacent group, you must use the Add Group shortcut. For more information, see Add or delete a group in a data region (Report Builder and SSRS).

  • Advanced. Use the Advanced mode to view all members of row and column groups, and to set properties on static members. When you create groups or add totals, the properties that control how the Tablix data region renders rows and columns on each report page are set automatically. To manually adjust these properties, you must set them on the Tablix member. For more information, see Control the Tablix data region display on a report page (Report Builder and SSRS).

Default mode

In default mode, the Row Groups pane and the Column Groups pane display a hierarchical view for all parent groups, child groups, and adjacent groups. A child group appears indented under its parent group. An adjacent group appears at the same indent level as its sibling groups. The following figure shows a Tablix data region with nested row groups and nested and adjacent column groups.

Screenshot that shows a nested tablix with adjacent row and column groups.

The Grouping pane displays the corresponding row and column groups. In the following figure, the group based on subcategory is selected in the Row Groups pane, and the [Subcat] grouping cell is selected in the Tablix data region:

Screenshot that shows a Grouping pane for nested row and column groups.

In the Row Groups pane, the group based on subcategory is a child of the group based on category. In the Column Groups pane, the country/region group is a child of the geography group. The year group and the country/region groups are adjacent groups.

For more information, see Tablix data region cells, rows, and columns (Report Builder) and SSRS.

Advanced mode

In Advanced mode, you can view all static and dynamic members of a group. When you select a member, the Properties window displays properties for the currently selected Tablix member.

To toggle Advanced mode, right-click the down arrow at the side of the Column Groups pane, and then select Advanced Mode.

In most cases, properties that control the display of static and dynamic group rows and group columns are set automatically when you create a group or add totals.

To edit the default values, you must select the group member in the Row or Column Groups pane, and change the property values in the Properties window. If the properties pane isn't visible, in the View menu, select Properties or press F4. The following properties are available:

  • FixedData. Boolean. For outer row and column headers. Freeze the row group area when scrolling vertically or the column group area when scrolling horizontally in a renderer such as HTML.

  • HideIfNoRows. Boolean. For static members only. If set, Hidden and ToggleItem are ignored. Hide this member if the Tablix data region contains no rows of data.

  • KeepTogether.

  • KeepWithGroup. Boolean. Used for static row members only. Where possible, keep this row with the previous or following sibling dynamic member, if it isn't hidden.

  • RepeatOnNewPage. Boolean. For static row members only and where KeepWithGroup isn't None. Where possible, repeat this static row on every page that has at least one instance of the dynamic member specified by KeepWithGroup.

  • Hidden. Boolean. Indicates whether the row or column should be initially hidden.

  • ToggleItem. String. The name of the text box to which to add the toggle image. The text box must be in the same group scope or a containing scope.

For more information about how this behavior can be controlled on a Tablix data region, see Control the tablix data region display on a report page (Report Builder and SSRS).

Not every static member has a header that corresponds to a cell on the design surface. In the Grouping pane, the following convention indicates whether a static member has no header:

  • Static Indicates a static member with a header cell.

  • (Static) Indicates a static member with no header cell, known as a hidden static.