SSRS - 使用基于布尔字段结果的COUNTDISTINCT

时间:2016-02-22 10:33:33

标签: reporting-services count expression

我有一个RetailLocation的布尔字段,根据该字段是否为True,我想从保存商店ID的CustomerLocation字段中计算不同的值。总结果是获得每个位置的平均呼叫值。 到目前为止,我有以下,但我收到此错误: 没有为类型'Field'和'Boolean'定义Operator'='。

=COUNTDISTINCT(IIF(Fields!RetailLocation.Value=true,
Fields!CustomerLocation.Value, Nothing),"MonthlyIncidentReviewRetailLogged")/
SUM(IIF(Fields!RetailLocation.Value=true,1, 0),"MonthlyIncidentReviewRetailLogged")

0 个答案:

没有答案