Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 报表设计中的文本框过滤_C#_Sql Server 2008_Reporting Services - Fatal编程技术网

C# 报表设计中的文本框过滤

C# 报表设计中的文本框过滤,c#,sql-server-2008,reporting-services,C#,Sql Server 2008,Reporting Services,执行报告时如何过滤文本框表达式?我做了这样的事 = Sum(Fields!student_points.Value < 60, "StudentDisengangementDataSet") 我不知道我是否做对了。您的意思是要显示值小于60的学生分数字段的数量 如果是这样,请尝试以下方法: = Sum(IIF((Fields!student_points.Value) < 60, 1, Nothing), "StudentDisengangementDataSet") 也就是说,

执行报告时如何过滤文本框表达式?我做了这样的事

= Sum(Fields!student_points.Value < 60, "StudentDisengangementDataSet")

我不知道我是否做对了。您的意思是要显示值小于60的学生分数字段的数量

如果是这样,请尝试以下方法:

= Sum(IIF((Fields!student_points.Value) < 60, 1, Nothing), "StudentDisengangementDataSet")
也就是说,如果student_points.Value<60,则将其计算为+1,否则不计算并返回发生的数量

或者,如果您只想对<60的数值求和,则:

= Sum(IIF((Fields!student_points.Value) < 60, Fields!student_points.Value, Nothing), "StudentDisengangementDataSet")
不管怎样,我都没有测试