[{"id":"a20f26ac-cd31-4e4d-9454-1e035b0f1587","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"3604b8ce-1da0-413f-8274-7df0f7173573","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"7fce7040-1bb1-4a61-9fb7-2e19d569de50","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"0eb72dd3-8f8f-4039-93a8-500bbde2301e","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"ac046cee-82b9-4edf-a642-ae6d7cb21ebf","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"75b66fd4-b740-443d-bc6e-1782048b60a6","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"dde44832-bb5c-45f3-8ebf-3badbc613cd9","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"43de3664-261b-4cf9-9945-fb519251f4c7","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"2f064d57-b088-4bc5-a628-4e0d7e1a0c65","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"f290406b-ced1-4c52-abad-979160a79f6b","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"1864834b-08ce-43f1-891b-c3cca6e04e95","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"f96cfec1-420c-4ca7-ab0a-cab482731073","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"3f2ea860-c764-43d8-ae3f-6e3b0314ce67","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"81eb70e8-f770-4384-9167-bc7c755ad052","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"d0dff477-9f56-483a-a9fc-cab648905b41","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"793a62d7-460d-4699-9304-edb2941268ac","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"2d6ebfad-f7d1-4cc5-8ba1-fdace3472056","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"c8c7b5d5-f5bd-4b68-a12f-3aae9804a844","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"577a09da-dea1-42db-812f-4eeaa9274ece","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"8ddd80d5-886f-41b8-8e3f-f73aa8146c8d","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"e0909540-8bde-4587-bb4d-02445746db2a","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"464b8e03-462d-4aed-8818-05d32ec3bf00","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"f235557b-9781-471f-bf03-38bae6e3e953","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"fd5d021d-0210-4d74-ba42-1a39ef14a385","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"548568fe-dbd1-4da5-a489-d9b3edf75329","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"a0c823ed-e22b-493b-aded-4d201c0fa480","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"d19bc9cd-ff53-4b0d-ab7e-a68c1497c4c6","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"94759fce-692f-4779-b5f3-fce5c58f242c","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"27658163-a479-432f-a192-dbed286beb3e","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]}]
        
(Showing Draft Content)

Tablix

A Tablix report item is a data region similar to Excel Pivot Tables. The tablix condenses bound data records into groups and arranges unique values of these groups, known as Group Instances, in horizontal(Column Groups) and vertical(Row Groups) directions. The intersection of a Row and Column Group displays one or more summary values. For example, in the report output from the Get Started With Summary Reports walkthrough, Row Groups display store names, Column Groups display years and their intersections show the Net Sales for each store in each year.




In addition, the Tablix can sort and filter the data based on pre-defined conditions or user input.

Adding a Tablix

You can add a Tablix into a report by either double-click the corresponding item in the toolbox or drag-and-drop it to a report page area.

Expand to watch adding the Tablix in action


If you set up the Data Binding, which we recommend beginning any report creation with, then after adding a new tablix, it displays the dialog, known as Tablix Wizard that allows you to instantly configure Row Groups, Column Groups, Summary Values, and various layout options.

Tablix Wizard



The wizard dialog displays available data sets on its left side. You can drag-and-drop fields from one of these data sets into the Row Groups, Column Groups, and Values areas.


The Filters button located on the right side of the Layout Options area allows you to add conditions under which the tablix will filter the displayed data.


Unique values of Rows and Columns fields generate row and column Group Instances, respectively. You can filter and sort group instances and apply formatting to their values using the corresponding drop-down buttons on a field name's right side. The Swap button exchanges row groups for column groups.


You can add more than one field into Row and Column groups creating hierarchical structures. For instance, the Drill-down Tablix has the following configuration.




Consequently, the report output displays the Year rows expandable into the Month sub rows.


The fields in the Values area determine the summary values displayed in row and column group instances intersections. You can specify the aggregate function, such as Sum, Count, or Average, and the formatting of a summary value using buttons on the right side of its name. In addition, the Display As drop-down allows you to specify an advanced formula of the summary value. Supported values are:

  • % Grand Total - displays a value as a percentage of its grand total.

  • % of Row Group Total - displays a value as a percentage of its row group total.

  • % of Parent Row Group Total - displays a value as a percentage of its parent row group total.

  • % of Column Group Total - displays a value as a percentage of its column group total.

  • % of Parent Row Group Total - displays a value as a percentage of its parent column group total.

Multiple summary values can arrange horizontally, the default option, or vertically, which can be achieved by turning on the As Rows switch.

For instance, the Tablix with Multiple Values has two summary values to display sales channels' contribution to the sales of product categories using the absolute value and the percentage share. To achieve that, we added the SalesAmount in the Values area twice, set the Sum aggregate function for both of them, set the Currency formatting for the second value, and then selected the % of Column Group Total in the first value's Display As drop-down.


The Totals tab in the Layout Options section lets you quickly set up the appearance of Grand Totals and Subtotals for column and row groups:

  • The Totals For Row Groups checkbox inserts the additional Row at the beginning or the end all the Row Group Instances that shows the Grand Total for each instance of the innermost Column Group.

  • The Subtotal For Row Groups checkbox inserts the additional Row at the beginning or the end each instance of the outermost Row Group that shows the SubTotal for each instance of the innermost Column Group. This option is only applicable in the case of row group hierarchy.

  • The Totals For Column Groups checkbox inserts the additional Column at the beginning or the end all the Column Group Instances that shows the Grand Total for each instance of the innermost Row Group.

  • The Subtotal For Column Groups checkbox inserts the additional Column at the beginning or the end each instance of the outermost Column Group that shows the SubTotal for each instance of the innermost Row Group. This option is only applicable in the case of column group hierarchy.

  • The Show Totals Before Groups checkbox determine the placement of Grand Totals and Subtotals for those above options.

The Organization tab in the Layout Options section lets you configure the interactive features of a tablix.

  • The Expand/Collapse Groups checkbox enables the drill-down functionality of hierarchical row and column groups. For example, the Drill-Down Tablix uses this option to create drill-down grouping by Year and Month.

  • The Collpased Groups checkbox determines whether a drill-down row or column group should initially hide inner group instances.

  • The Stepped Row Groups checkbox determines the layout of row groups hierarchy. By default, each row group prints in a separate column. The stepped layout prints all row groups in a single column applying padding to nested group instances. The Drill-Down Tablix uses this option.

In most cases, after you finished the initial configuration of a tablix and closed the Wizard Dialog, you can re-open it later to adjust the settings. However, for advanced scenarios the Wizard can't handle the tablix structure and displays the corresponding warning.



Tablix Designer

Once you closed the Wizard Dialog, the tablix configuration can be set up using the designer. The following diagram depicts the default structure of the Tablix Designer that appears if you click anywhere inside its bounding box.



General Tablix Configuration

You can use one of two methods to load the general tablix configuration into the Properties panel

The general configuration includes Base Report Item properties, Common Style Properties, Data Region properties, Visibility, Page Break, and the following specific properties.

  • The Layout Direction property determines the direction of column groups:

    • Ltr: Columns groups start at the left and progress to the right.

    • Rtl: Columns groups start at the right and progress to the left.

  • The Groups Before Row Headers number indicates how many columns should be printed before row groups appear. Try setting this property to 2 for the Tablix With Multiple Values to see its effect.

  • Column groups of a tablix could span multiple pages horizontally. If that's the case, the Repeat Row Headers flag indicates whether a Tablix should print row groups on each page.

  • Row groups of a tablix could span multiple pages vertically. If that's the case, the Repeat Column Headers flag indicates whether a Tablix should print column groups on each page.

  • The New Section flag indicates whether a Tablix has its page numbering. Check the Global References documentation for more information.

  • The Keep together flag determines whether a Tablix always appears on a single page if it fits.

  • The Frozen Rows and Frozen Columns numeric properties indicate how many rows and columns should remain visible when a report reader scrolls a tablix that does not fit into a visible area of the Report Viewer component.

Tablix Corner

A Tablix Corner is located in the upper-left corner, or upper-right corner if a tablix has the Layout Direction is set to Rtl.

The layout direction applies at preview-time only, though.

This area is automatically expanded horizontally or vertically when you add new column or row groups. You can merge cells inside the tablix corner and insert a data visualizer such as a TextBox or Image.

To merge cells, select them holding the Ctrl button on Windows or Cmd on Mac OS, then right-click the selection and choose the Cells > Merge Cells item in the context menu.

Tablix Rows

A Row is a horizontal group of Cells within a Tablix. If you left-click a row handler, it automatically selects all the report items in the row's cells and the Properties panel shows two tabs. The Row tab exposes the Height in Length units that determines the initial height of tablix cells within a row. However, cells can grow or shrink in height at preview-time. Check the CanGrow and CanShrink properties of a TextBox report item for more information.


The additional tab lets you modify the properties of all the row's report items simultaneously. In the most common scenario, the extra tab is called TEXTBOX and changes all the row's textboxes' properties.

Tablix Columns

A Column is a vertical group of Cells within a Tablix. If you left-click a column handler, it automatically selects all the report items in the column's cells and the Properties panel shows two tabs. The Column tab exposes the Width in Length units that determines the width of tablix cells within a column.


The additional tab lets you modify the properties of all the column's report items simultaneously. In the most common scenario, the extra tab is called TEXTBOX and changes all the column's textboxes' properties.

Tablix Groups

The tablix designer marks row and column groups with square brackets. If you click the cell on the right side or underneath a square bracket, the properties panel loads the configuration of the corresponding row or column group in the Tablix Member tab.

Group Configuration

  • The Enabled flag is on by default for row and column groups. You can switch it off to make a column or row group print only once per tablix. It could be useful for layouts similar to the Tablix with Static Columns

  • The Name is the group Id displayed in the Group Editor.

  • The Group Expressions is the collection of bound field references or more advanced expressions. Unique values of group expressions generate Group Instances.

  • The Label expression determines the text of a group instance link in the Report Map.

  • The Filters Editor of a group allows you to filter out certain group instances. For example, if we want to exclude the Online sales channel from the Tablix with Multiple Value output, we can add the following filter for the SalesChannel group.


Group Layout Configuration

  • The Keep together flag ensures that the group instance always appears on a single page if it fits.

  • The Page Break property determines the location of page breaks generated by group instances.

    • None - no page breaks are generated.

    • Start - each group instance inserts the page break before printing its content.

    • End - each group instance inserts the page break after printing its content.

    • StartAndEnd - the combination of the Start and End options.

    • Between - each group instance starts on the new page.

  • The Page Break Disabled expression allows you to conditionally prevent page breaks from being inserted by the aforementioned property.

  • The Visibility property determines static or dynamic visibility of group instances. The Drill-Down Tablix sets the dynamic visibility of the SalesMonth group to implement the drill-down interactivity.

  • The New Section flag determines whether each group instance has its page numbering. Check the Global References documentation for more information.

Sorting Group Instances

The Sort Expressions property of a row or column group is the collection of items that allows you to sort group instances. Each item consists of the expression and the sort direction. For instance, the Group_SalesYear row group in the Advanced Tablix, group has the {SalesYear} sort expression and ascending order. Consequently, years appear chronologically at preview time.

Group Layout

Initially, a tablix group consists of the single cell on the intersection of a row and column. You can add new columns and rows inside or outside a group. In the former scenario, newly added cells repeat once per group instance. In the latter, they repeat once per group.


For example, to add column headers into the Tablix with Multiple Values we could take the following steps.

  • Right-click the {ProductCategory} cell enclosed with the square bracket on the top.

  • Select the Row -> Insert Row Inside a Group - Below item in the context menu.

  • Set the padding, border, and text alignment for the newly added cell.

  • Right-click the newly added cell and select the Cells->Split Cells item in the context menu.

  • Set the %%% and $$$ text for the textboxes of newly created cells.

As a result, the output looks like this:



Insert adjacent, child or parent groups

Row and Columns groups can be arranged hierarchically. For example, in the Tablix with Static Columns, the Group_SalesChannel row group has the child Group_ProductCategory group.

Also, groups can be adjacent as the Group_SalesYear and Group_SalesChannel row groups in the Advanced Tablix.

To insert a child, parent, or adjacent group right click the cell on the right side or underneath a square bracket in the tablix designer and select the corresponding item in the Row Group or Column Group menu.




The same menu allows you to delete or disable a group.


Alternatively, you can use the Group Editor to insert remove, disable groups or load their configuration into the properties panel. The group editor displays the hierarchy of items known as tablix members. Row and Column groups are marked with square brackets. Other items in the hierarchy marked with vertical lines are static tablix members and they point to cells that contain a static text or total values.


For example, here is the tablix members structure of the Advanced Tablix



Static Tablix Members Properties

In most cases, static tablix members are TextBoxes that you can modify by left-clicking inside the containing tablix cell. The Properties panel displays the TextBox and Tablix Members tabs. You can use the latter to modify the following properties.

  • The Enabled flag is off for static members and on for dynamic members.

  • The Repeat on New Page flags determines whether a static member prints on each page taken by the tablix content.

  • The Keep together flag ensures that the static member always appears on a single page if it fits.

  • The Visibility property determines static or dynamic visibility of the static member.

Displaying Totals

A tablix could display two types of totals.

  • The Grand Total appears at the beginning or at the end all the group instances. For example, the Advanced Tablix displays the grand total of columns in the last three rows.

  • The Subtotal appears at the beginning or at the end of each group instance. For example, the Tablix with Static Columns prints the subtotal for each SalesChannel.

To insert a total row or column in both scenarios, right click the cell on the right side or underneath a square bracket in the tablix designer and select the Total->Add Total Before or Total->Add Total After menu item. If a group does not have the parent, then the grand total will be inserted. Otherwise, the subtotal for the parent group will be created.


To insert additional totals, you can add rows and columns as described in the group layout section and set summary expressions for the newly added cells.