SSRS 报告:如何限制组中返回的行数

SSRS Reporting: How to limit the number of rows returned in a group

如何限制组中 return 的行数?

到目前为止,当报表运行时,每个组 return 有很多记录。但是,我只希望它 return 每组中的前 4 条记录。

我试过表达式:=Ceiling(RowNumber(Nothing)/4) 但这不是我要找的。

我正在使用 SQL Server 2012 数据工具(Visual Studio 2010)

谢谢。

在组的属性中,在所需字段上设置过滤器,选择 "Top N" 作为运算符,选择 4 作为值。