简体   繁体   English

SSRS表达式计数查询

[英]SSRS Expression count query

I have table where want to display a count of all cases opened in last 30, 90, 180 and 12 months. 我有一个表格要显示过去30、90、180和12个月内打开的所有案件的计数。

I have following expressions which errors when I run my report. 我有以下表达在运行报告时出错的表达式。 I specified the team name and count is on Involvement ID. 我指定了团队名称,并且涉及的是参与ID。

Any ideas. 有任何想法吗。

This is my expression: 这是我的表情:

=CountDistinct(iif(Fields!Team.Value="AAC",(IIF(DateDiff("d", Fields!OPEN_DATE.Value, Now) <= 30,Fields!INVOLVEMENT_ID.Value,Nothing))))

Your first IIf function doesn't have a third argument: 您的第一个IIf函数没有第三个参数:

=CountDistinct(iif(Fields!Team.Value="AAC",(
IIF(DateDiff("d", Fields!OPEN_DATE.Value, Now) <= 30, Fields!INVOLVEMENT_ID.Value, Nothing)
), ...))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM