SSRS表达式从SP日历中提取数据(今天,周,月,年,总)

时间:2016-07-18 16:52:47

标签: reporting-services ssrs-2008 ssrs-2008-r2 ssrs-2012 ssrs-tablix

我有一份报告,我想针对我的SharePoint日历显示。我想显示项目和条目的COUNT / SUM,但是在显示正确数据时遇到问题。有人能帮忙吗?

TODAY

=Count(Microsoft.VisualBasic.Interaction.IIF(Fields!End_Time.Value = Microsoft.VisualBasic.DateAndTime.Today, 1, 0), "Data Source")

WEEK

=SUM(IIF(DATEPART(DateInterval.WeekOfYear,Fields!End_Time.Value)=
DATEPART(DateInterval.WeekOfYear,Today),1,0),"Data Set")

=Sum(Microsoft.VisualBasic.Interaction.IIF(Microsoft.VisualBasic.DateAndTime.MONTH(Fields!End_Time.Value) = Microsoft.VisualBasic.DateAndTime.Today.Month(), 1, 0), "Data Set")

YEAR

=Sum(Microsoft.VisualBasic.Interaction.IIF(Microsoft.VisualBasic.DateAndTime.YEAR(Fields!End_Time.Value) = Microsoft.VisualBasic.DateAndTime.Today.Year(), 1, 0), "Data Set")

TOTAL

=Count(Fields!ID.Value, "Data Set")

编辑:插入截图。

只有少数项目可以显示,但它显示的是10倍。请看下面的截图,注意大数字。

screenshot

0 个答案:

没有答案