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. Click on the Data assign
menu icon to open data assign menu. If the report has no dataset, then the data assign menu will have following options.
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.Content
property.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.
Content
property, type the value or set the data field using the expression editor.
Refer Set expression section to open expression menu and to set expression.
=Fields!Sales.Value
expression is entered in the content property field to assign Sales
data field into the respective cell.
Sales
field will be denoted in the respective cell like below.
There are two ways to assign or edit the expression into a tablix cell:
Add Expression
and edit expression using the Edit Expression
option in data assign menuContent
property of a cell in properties panelSelect a table cell and click on the Data assign
menu icon to open data assign menu.
Click the Add Expression
option in the data assign menu. Now, the Expression
builder will be launched like below.
To learn more about handling expressions in report designer refer Expressions section.
You can specify dataset fields, parameters or any other built-in functions and click on the OK
button.
The label denoted in the table cell varies based on the assigned values in table cell. The following snap depicts the label text variations.
Content
property.
Expression
option in the menu. Now, the Expression
builder will be launched like below.
OK
button.Data assign
menu icon to open data assign menu.
Edit Expression
option in the data assign menu. Now, the Expression
builder will be launched like below.
OK
button.Content
property.
Expression
option in the menu. Now, the Expression
builder will be launched like below.
OK
button. Now, the expression will be updated for respective cell.