我需要这样表达:
=IIf(Count(Fields!counter.Value) > 0, 1 - Sum(Fields!validatedErrors.Value) / Count(Fields!counter.Value), 0)
,并向其添加2个小数位。我不确定该怎么办
我知道我可以添加
=Format(Fields!CUL1.Value,"F2")
应该在正常值上增加2个小数位。 IIF却让我失望。
我希望能够做这样的事情:
=IIf(Count(Fields!counter.Value) > 0, 1 - Format(Sum(Fields!validatedErrors.Value) / Count(Fields!counter.Value), 0),"F2")
Fields!validatedErrors.Value = 1352
Count(Fields!counter.Value),0)= 1620
1352/1620 = .8345
现在它返回83%,这很好,但我想将其更改为返回83.45%
我也尝试过:
=IIf(Sum(Fields!DestElectronic.Value) > 0, Format(Sum(IIf(Fields!DestElectronic.Value = 1, 1, 0)) /Count(Fields!counter.Value), 0),"#0.00")
和
=IIf(Sum(Fields!DestElectronic.Value) > 0, Format(Sum(IIf(Fields!DestElectronic.Value = 1, 1, 0)) /Count(Fields!counter.Value), 0),"#0.##")