值1是零售价小数值2是2个零售成本之间的差值都是小数
=IIF(Fields!Prorated.Value is null,"",Fields!Prorated.Value)-Fields!Retail.Value fixxed !!!
Fixxed ^^
=IIF(IsNothing(Fields!Prorated.Value),"",(Fields!Prorated.Value-Fields!CurrentRetailPrice.Value)/Fields!Prorated.Value)
失败^^这个显示为%差异
这没有用于解决这个
的另一种方式答案 0 :(得分:9)
试试这个:
=IIF(IsNothing(Fields!days_Prorated.Value),"",Fields!Prorated.Value-Fields!Retail.Value)
如需评论,请尝试:
=IIF(IsNothing(Fields!Prorated.Value),"",(Fields!Prorated.Value-Fields!CurrentRetailPrice.Value)/iif(Isnothing(Fields!Prorated.Value),1,Fields!Prorated.Value)
在这种情况下,您必须对其进行两次验证。