SSRS (NaN)

  • Does anyone know how to replace Nan with O

    I have the following expression:

    =(Fields!F.Value)/((Fields!A.Value) + (Fields!D.Value) + (Fields!C.Value))

  • You are most likely getting a divide by zero happening.

    Add something like this - you may need to check for nulls also - been a while.

    =iif(((Fields!A.Value) + (Fields!D.Value) + (Fields!C.Value)) = 0, 0, (Fields!F.Value)/((Fields!A.Value) + (Fields!D.Value) + (Fields!C.Value)))

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply