views:

150

answers:

2

I have a conditional sum in my grouping

=sum(iif(Fields!Letter.Value="Service",0,Fields!Mailed.Value))

I keep getting the #error on half the fields. There all numbers. In my proc im calling the fields that are erroring outare doing a calculation. I tried putting those into a subquery and calling and it errored out. Im not sure where to go from here.

Any ideas on why this may be and how to fix it?

A: 

The only thing I can think of is to check that data types that you are using

Zaid Zawaideh
A: 

IIf Condtion Returns as object .Parse the object to Numeric like decimal or integer and sum .

Jaffer Sadiq