0

I want to sum all the values of the column, using if condition same as the column expression:-

The Expression of the normal column:-

iif(Fields!mcount.Value <> 0 And Fields!TaxCode.Value = 1 ,Fields!InputAmnt.Value,0)

The Expression to sum, I used 2 codes and the same result "#Error" appeared in both cases

sum(iif(Fields!mcount.Value <> 0 And Fields!TaxCode.Value = 1 ,Fields!InputAmnt.Value,0))

and

 iif(Fields!mcount.Value <> 0 And Fields!TaxCode.Value = 1 ,sum(Fields!InputAmnt.Value),0) 

any help ?

Bishoy Ezzat
  • 99
  • 10

1 Answers1

1

Try adding VAL from the InputAmnt field. See below expression.

=SUM(iif(Fields!mcount.Value <> 0 And Fields!TaxCode.Value = 1 ,VAL(Fields!InputAmnt.Value),0))
Aldrin
  • 756
  • 6
  • 18