Add the report table
Add the table (Tablix)
- Drag and drop the table widget to the main section of the report.Make sure to select outside of the element to clear the selection and then select it again to view all the Table widget properties.
- Enter the table Name.
The table name must not include spaces.
- In the Data section, select the appropriate Dataset from the dropdown.
Add fields to the second row of the table
- Hover over the first cell on the table's second row and select the list icon (
) to view the dataset's fields. - Click the icon in the cell to view the dataset's fields.
- Optionally, use the Search field to filter the fields.
- Select the appropriate field.
- Optionally, to add or delete columns, select the appropriate cell, right-click, and select Insert or Delete Column as needed.
- Repeat the steps above for each cell on the table's second row.
Add expression fields
- Select the appropriate cell on the table's second row.
- In the properties, select the square icon (
) next to the Content field and select Expression. - Select Fields from the Data dropdown to view the dataset's fields list.
- Optionally, double-click the appropriate field to add it to the expression.
You can also manually enter the appropriate expression in the Set Expression for : Content field.
- Select OK.
Add column headings to the table's first row
- Select the appropriate cell on the table's first row.
- In the properties, enter the column name in the Content field and update the styling as needed.
For example, set the Background Color to black and the Font color to white.
- Repeat the above steps for the remaining cells as needed.
Specify the text alignment
You can align text within column headings or fields, such as left, center, or right, depending on your layout needs. This is especially useful for currency fields.
- Select the appropriate cell.
- In the Alignment section of the properties, select the Text Alignment from the dropdown.
Adjust the column width
- To select the entire column, select just above the first row of the table.
- In the Position section of the properties, set the Width to the appropriate value.
Set up table sorting
- Select the top-left corner of the table to ensure the entire table is selected.
- In the properties, go to the Data section and select SET SORTS...
- In the Sorting dialog, select + ADD, then select the field you want to sort by and the sorting order.
- Repeat step 3 for each additional field you want to sort by.
- Select OK.
Adjust the table's final position and width
While you can set the table’s position and width when it’s first added to the report, you can also adjust these settings later.
- Select the left top corner of the table.
- In the properties, adjust the Position and Size as needed.
Specify the final position of the header and the footer
After adjusting column widths, the elements added to the header and footer section might need to be repositioned.
- Select the appropriate element in the header or footer.
- In the properties, adjust the Position and Size as needed.