Hi, I get numerator from dataset and denominator from function and pass them to the custom code function which gives division result. Something like below code: =IIF(Sum(Fields!Value1.Value)<>0,Code.GetPerc(Sum(Fields! Value1.Value),(IIF(IsNothing(Code.GetValue2()),0,Code.Get_Value()))),0) If record for Value1 does not exist then it gives #Error else it works fine. How to handle non existing record in such calculation? Thanks, JM |
↧
Custom code for division throws an #Error message for NON EXISTING record.
↧