Articles in this section

How to Limit the Number of Rows Displayed in a Tablix Using RowNumber

Published:
Updated:

Bold Reports allows you to use the RowNumber function in the Hidden visibility property to restrict the number of rows displayed in a tablix. This approach provides precise control over row visibility in reports and is useful for creating summaries or space-constrained layouts where only a specific number of records should be displayed.

Step-by-Step Instructions

Step 1: Open the Groupings Panel

  1. Select the tablix report item in your report to open the groupings panel.
    Select Tablix Item
  2. In the Groupings panel, locate the detail row group (for example, Details1) under Row Groups and select it.
    Select Row Group

Step 2: Configure the Visibility Expression

  1. Click the Settings icon to open the Properties panel.
  2. Navigate to the Visibility section. Click the expression button next to the Hidden property and select Expression to open the expression editor.
    Open Expression Editor
  3. Enter the following expression to hide rows beyond a specific count (example to show the first 20 rows) and click OK to save the changes.
    =RowNumber("DatasetName") > X
    
    Enter Visibility Expression

Replace DatasetName with your dataset name and X with the maximum number of rows to display. For example: =RowNumber("CustomerDetail") > 20

Step 3: Preview the Report

Click Preview on the top toolbar and verify that only the specified number of rows are displayed.

Preview Limited Rows

Download the sample report here.

Related Articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied