The table, matrix and list report items can display data from a single dataset. You can also assign conditional expressions to filter or sort the dataset columns.
There are two ways to assign the dataset to the tablix:
Dataset
property of tablixSelect any cell in the tablix data region, then click the Data Assign
menu icon to open the data assign menu. If the report does not have a dataset, the menu will display an Add Datasource
option.
Click on the
Add Datasource
option in the menu and add dataset using the steps provided in Create Data section.
By default, the menu displays the fields of the first dataset in the report.
The available datasets in the report will be listed in the first dropdown. To assign different dataset, choose desired dataset in the dropdown.
Now, the fields of selected dataset will be listed in the data assign menu like below.
Dataset
property dropdown. You can choose the desired dataset from the drop-down.
There are a few different ways to assign the fields into a tablix cell:
DATA
panel.DATA
panel and expand the required dataset.
Select the tablix cell and click on the Data assign
menu icon to open data assign menu.
Click on the required data field name in the menu.
The fields of the dataset which is assigned to
Dataset
property of tablix will be listed in the menu.
Now, the respective field will be assigned to the respective cell like below.
In a tablix cell, expressions can be set or edited through the Text Editor dialog.
Text Editor
icon to open the Text Editor Dialog.
Text Editor
Dialog, enter the desired content or expression directly.
Expression
option to open the Expression Editor
.
OK
.
[Sales]
expression will now appear in the Text Editor
Dialog.
Save
to assign [Sales]
data field into the respective tablix cell.
You can specify dataset fields, parameters, or built-in functions in the Expression Editor
, then click OK
.
The label denoted in the table cell varies based on the assigned values in table cell. The following snap depicts the label text variations.
Text Editor
icon to open the Text Editor Dialog.
Text Editor
dialog will appear, allowing you to modify the existing content or edit the Expression.
Expression
option to open the Expression Editor
.
Expression editor
and click OK
.
[Sum(Sales)]
expression is updated to the Text Editor dialog.
Save
to assign [Sum(Sales)]
data field into the respective tablix cell.