根据你想如何处理这个你可以做
=iif(isnumeric(sum(Fields!Month13.Value, "SKU")) and
isnumeric(sum(Fields!Month1.Value, "SKU")) and
sum(Fields!Month1.Value, "SKU") > 0,
(sum(Fields!Month13.Value, "SKU") - sum(Fields!Month1.Value, "SKU")) /
sum(Fields!Month1.Value, "SKU"),
0)
或在 IIF 语句中放置另一个 IIF 语句以检查 month1 的总和是否大于 0,否则为 1。
=iif(isnumeric(sum(Fields!Month13.Value, "SKU")) and
isnumeric(sum(Fields!Month1.Value, "SKU")),
(sum(Fields!Month13.Value, "SKU") - sum(Fields!Month1.Value, "SKU")) /
iif(sum(Fields!Month1.Value, "SKU") > 0, sum(Fields!Month1.Value, "SKU"), 1)
0)