【发布时间】:2012-03-28 01:37:41
【问题描述】:
我有以下表达式。有人能告诉我为什么打印 0。
=IIF(Parameters!StartMonth.Value <= 1 And Parameters!EndMonth.Value >= 1, ReportItems!txtTotal1.Value,
IIF(Parameters!StartMonth.Value <= 2 And Parameters!EndMonth.Value >= 2, ReportItems!txtTotal2.Value,
IIF(Parameters!StartMonth.Value <= 3 And Parameters!EndMonth.Value >= 3, ReportItems!txtTotal3.Value, 0)))
谢谢
【问题讨论】:
-
如果我只放第一行,它就会得到所需的值。但是,一旦我添加另一行,它就会显示 0。我也用 SWITCH 语句尝试过,结果一样。
标签: service reporting-services nested reporting iif