I'm trying to calculate the total of cost
in RDLC report
using expressions
I applied the following and it works fine :
=SUM(Val(Fields!PCOST.Value))
But I tried to apply another expression
to calculate the cost but with a condition like below :
=IIf(Fields!Active.Value =False, SUM(Val(Fields!PCOST.Value)),0)
but only I got 0.00
?
can anyone explain why?
the table [Active] field type is bit