我有一份报告,我想针对我的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倍。请看下面的截图,注意大数字。