IIF Expression

John Kelly 106 Reputation points


I have a simple expression =Sum(Fields!Charge_Value.Value) that returns a lot of empty fields in the report as shown


If the field is empty i want to populate this with 0.00 and have tried multiple variations of IIF in the existing expression but these are still blank and keep getting #ERROR values place of the current values.

Can anyone help with this expression

Many thanks


SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,362 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,471 Reputation points Microsoft Employee

    Hi @John Kelly ,
    Please try:


    Here is my test:



    Best Regards,

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

1 additional answer

Sort by: Most helpful
  1. John Kelly 106 Reputation points

    Solution found:

    =IIF(Fields!Charge_Value.Value < 1,0,Sum(Fields!Charge_Value.Value))

    I think my problem was i was trying to use is null or ISNOTHING or " " in the expression

    0 comments No comments