Simply wrap the IFF statement in a sum
Only thing to look out for is making sure that the TRUE/FALSe part of the IIF statement returns the same type of data e.g.
=IIF(Fields!TestField.Value = 1 , Fields!Whatever.Value,0)
is a valid IIF statement but for the SUM, you may need to amend to:
=SUM(IIF(Fields!TestField.Value = 1 , CInt(Fields!Whatever.Value),Cint(0)))
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
Please read FAQ222-2244 before you ask a question