Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

Custom code for division throws an #Error message for NON EXISTING record.

$
0
0
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

Viewing all articles
Browse latest Browse all 20764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>