title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | ms.custom | |
---|---|---|---|---|---|---|---|---|---|
Set a No Data Message for a Data Region (Report Builder) |
Learn how to set a no data message to show in a rendered report in place of a data region that has no data. |
kfollis |
kfollis |
09/25/2024 |
reporting-services |
report-data |
how-to |
|
When you want to specify text to show in the rendered report in place of a data region that has no data, set the NoRowsMessage property for a table, matrix, or list data region, the NoDataMessage for a chart data region, and the NoDataText for the color scale for a map. At run time, the report processor runs the query for each dataset in a report and the dataset query may produce no result set. For a data region bound to an empty dataset, you can specify text to display instead of displaying an empty data region. You can also set the NoRowsMessage property for a subreport when no datasets in the subreport have data at run time.
Note
[!INCLUDEssRBRDDup]
-
In Design view, click the table, matrix, or list data region or subreport on the design surface to select it. The Properties pane displays the properties for the selected item.
-
In the Properties pane, type the text that you want to display as a message in NoRowsMessage property field.
Alternatively, from the drop-down list, click Expression to open the Expression dialog box and create an expression.
-
In Design view, click the chart on the design surface to select it. The Properties pane displays the properties for the selected item.
-
In the Properties pane, expand the node for NoDataMessage.
-
In Caption, type the text that you want to display as a message in NoDataMessage property field.
Alternatively, from the drop-down list, click Expression to open the Expression dialog box and create an expression.
-
In Design view, click the subreport on the design surface to select it. The Properties pane displays the properties for the selected item.
-
In the Properties pane, type the text that you want to display as a message in NoRowsMessage property field.
Alternatively, from the drop-down list, click Expression to open the Expression dialog box and create an expression.
-
In Design view, click the color scale on the map to select it. The Properties pane displays the properties for the selected item.
-
In the Properties pane, in NoDataText, type the text that you want to display as a label for colors with no data value.
Alternatively, from the drop-down list, click Expression to open the Expression dialog box and create an expression.