SSRS IsNothing Function

The SSRS IsNothing function is an Inspection function that checks whether the given field or expression has an object assigned to it. If the object is assigned, it returns a boolean True; otherwise, it returns False. The syntax of the IsNothing function to find whether the column is Null (empty) is shown below.


To demonstrate the SSRS IsNothing function in reporting services, we use the Employee table below, which has 20 records. The image shows the records in the Table report.

Inspection Source Table

SSRS IsNothing function Example

For this, let me add a new column to the right side of the Middle Name column. Next, right-click the textbox under it and choose Expression to open the expression window shown below. The IsNothing function expression below will check whether there is any object or text inside the Middle Name. If empty, it will return a Boolean True; otherwise, it will return False.

SSRS IsNothing Function expression to check the column value is empty or not

Although the above SSRS IsNothing function meets the requirement, replacing the empty column with something instead of True or False would be nice. So, let me create a new column called middle and use the IIf function to return ABC if it is nothing; otherwise, return the Middle Name. The IIf and IsNothing function expressions to perform the same are shown below.

  1. More Functions
  2. Charts
  3. Tables
  4. Format tables
  5. SSRS
=IIf(IsNothing(Fields!MiddleName.Value) = True,
"ABC", Fields!MiddleName.Value)

Please click the preview tab to see the IsNothing report.

SSRS IsNothing Function to check the column value is empty or not report