• Hi,

    Thanks for your reply.

    But it’s not division by zero error. I have handled that in code as follows:

    Public Function DivisionFunction(ByVal Value_1 AS Decimal, Value_2 AS Decimal) AS Decimal

    Dim bal As Decimal

    if ((IsNothing(Value_1) Or Value_1 = 0) Or (IsNothing(Value_2) Or Value_2 = 0))

    bal=0

    else

    bal=Value_1/Value_2

    end if

    return bal

    End Function

    Here, I get an error when I divide non existing value which is value1 (numerator) / Value2 (Denominator).

    Value1 = sum of Value1 on child group (Child1, Child2,…….)

    Value2 = sum of Value2 on parent group (Parent1)

    I fetch Value2 from Custom Code function and send Value1 and Value2 for division.

    Regards,

    JM