Reporting Services 中详细信息的可见性单元格

Visibility cells of detail in Reporting Services

我在 Reporting Services 2012 中遇到问题。

我想要这个 tablix:1:https://i.stack.imgur.com/P5IEB.jpg

为此,我有一份关于此 tablix 的报告。有两个详细单元格,其中 "Base" 是动态的,结果查询 sql。

在细节的可见性第二个单元格中,我有一个表达式:

iif(Previous(Fields!NOMBRE.Value)=Fields!NOMBRE.Value and RowNumber("DataSet1")=CountRows("DataSet1"),false,true)

但是,我的结果是:

我该怎么办?

您的表达式仅适用于总计,因为您在数据集范围内进行计数。您可能需要在组级别进行计数。假设您的组名为 Detail,则表达式应为:

iif(Previous(Fields!NOMBRE.Value)=Fields!NOMBRE.Value and RowNumber("Detail")=CountRows("Detail"),false,true)