How to Configure Tablix with Multiple Datasets
To configure a tablix with multiple datasets in the Bold Reports® JavaScript Report Designer, set the enableTableMultipleDataAssign client-side API to True when you initialize the designer. You can then assign data from multiple datasets to a Tablix.
Create Report Designer JavaScript application
Refer to the Getting started to create a Report Designer JavaScript application.
How do I enable multiple datasets in a tablix in the JavaScript Report Designer?
During the initialization of the Report Designer control, set the enableTableMultipleDataAssign property to True. When this property is enabled, you can bind data from multiple datasets to a Tablix. The dataset assigned in the Dataset Property of tablix is bound to tablix, while fields from other datasets are considered as expression.
Add the following code within the <body> tag of the Report Designer HTML page.
<!-- Creating a div tag which will act as a container for boldReportDesigner widget.-->
<div style="height: 600px; width: 950px; min-height: 400px;" id="designer"></div>
<script type="text/javascript">
$(function () {
$("#designer").boldReportDesigner({
serviceUrl: "https://demos.boldreports.com/services/api/ReportingAPI",
enableTableMultipleDataAssign: true
});
});
</script>When you run the application, the Report Designer renders as follows:

Create dataset
Refer to the Create Data section to create multiple datasets in the report. This example uses the AdventuresWorks database.
Add a table to the report
- The table report item is listed in the item panel under the
Data Regionscategory.
- Drag and drop the table report item into the design area from the item panel.

- The respective table properties will be displayed in the properties panel.

Assign data to the tablix
-
Select any cell within the Tablix data region. Click the
Data assignmenu icon to open the data assign menu.
-
The available datasets in the report will be displayed in the dropdown menu of the data assign menu.

-
Select the fields
SalesOrderID,ModifiedDate, andOrderQtyfromDataSet1. The selected fields will be assigned to the corresponding cells.
-
Choose
Dataset2from the dropdown menu. The respective fields are listed.
-
The fields
NameandUnitPriceassigned fromDataSet2will be considered as expressions.
Calculate a item total
To calculate the item total, refer to the Assign expression in cell section and assign the following expression to the last cell: =Fields!OrderQty.Value * First(Fields!UnitPrice.Value, "DataSet2").

Format tablix design
In the following design, the background color and font styles in the Tablix cells have been updated to enhance the report design.

Report preview
The report preview displays the Product Sales Report.

Download the preceding report design from the tablix report with multiple datasets on GitHub.