This section explains how to hide a table column or row when the field value is empty using expression.
2. Select the column and click visibility
in the properties panel.
3. You can hide the empty column in the table based on the column visibility expression as follows.
=IIF(Sum(IIF(IsNothing(Fields!FirstName.Value), 1, 0)) = COUNT(Fields!FirstName.Value), FALSE, TRUE)
Preview
at the top-right corner of the Report Designer toolbar to see the output result.
2. Select the row and click visibility
under the properties panel.
3. You can hide the empty column in the table based on the column visibility expression as follows.
=IIF(IsNothing(Fields!FirstName.Value) ,TRUE, FALSE)
Preview
at the top-right corner of the Report Designer toolbar to see the output result.