ssrs中报告项目可见性中的复杂IIF条件

时间:2015-08-19 06:30:13

标签: reporting-services visibility iif

我有一个复杂的可见性表达式,如下所示,似乎无法正常工作

=IIF((First(Fields!DeliveryTerms.Value, "PurchPurchaseOrderLine") = "1" AND ((Globals!TotalPages-1) = Globals!PageNumber)) 

OR ((First(Fields!DeliveryTerms.Value, "PurchPurchaseOrderLine") = "0" AND (Globals!TotalPages = Globals!PageNumber)), true, false)

1 个答案:

答案 0 :(得分:1)

如果您提供了错误,那将会很有帮助。看看IIF,似乎括号之间存在不匹配,请尝试下面给出的一个。

=IIF((First(Fields!DeliveryTerms.Value, "PurchPurchaseOrderLine") = "1" AND ((Globals!TotalPages-1) = Globals!PageNumber)) 
OR  (First(Fields!DeliveryTerms.Value, "PurchPurchaseOrderLine") = "0" AND (Globals!TotalPages = Globals!PageNumber)),true, false)