【发布时间】:2024-05-21 13:00:01
【问题描述】:
我正在尝试使用矩阵创建一个报告,该报告仅显示相关行组的列。
例如,我有一个软件,它允许系统用户定期“取样”,这些样本存储在数据库中。这些数据的存储方式是按人名分组。
报告的格式是这样的。
Person Item TimeStamp1 TimeStamp2
John Item1 Value1-1 Value1-2
John Item1 Value2-1 Value2-2
John Item1 Value3-1 Value3-2
--PageBreak--
Person Item TimeStamp1 TimeStamp2
Steve Item1 Value1-1 Value1-2
Steve Item1 Value2-1 Value2-2
Steve Item1 Value3-1 Value3-2
发生的情况是,我得到了换行符,但 Steve 的列出现在 John 中,而 John 出现在 Steve 中,就像这样。
Person Item TimeStamp1 TimeStamp2 SteveTime1 SteveTime2
John Item1 Value1-1 Value1-2
John Item1 Value2-1 Value2-2
John Item1 Value3-1 Value3-2
--PageBreak--
Person Item JohnTime1 JohnTime1 TimeStamp1 TimeStamp2
Steve Item1 Value1-1 Value1-2
Steve Item1 Value2-1 Value2-2
Steve Item1 Value3-1 Value3-2
我认为添加基于用户组的分页符会奏效,但仍然存在额外的列。
有没有办法只为页面上的关联组显示列?
【问题讨论】:
-
如果约翰和史蒂夫在同一个页面上,你能澄清一下你想要什么吗?
-
我永远不希望他们出现在同一页面上。该示例旨在简化场景。实际上,John 和 Steve 分别有几页数据。
标签: reporting-services ssrs-tablix