我有一个交叉表查询,看起来像:

Masterfile.png

它返回:
Response | Agent1 | Agent2 | Agentt3
Response1 | 1 | | 4
Response2 | | | 2
Response3 | 5 | | 6
Total 6 | 0 | 12

我在我的表中有字段'Date'但是当我在交叉表查询中将其添加为'Row Heading'(在响应列旁边)并尝试使用它以便过滤数据时,我收到一条错误消息: 'Cannot use the crosstab of a non-fixed column as a subquery' .

我想知道是否有一种方法可以在交叉表中按日期添加过滤器选项,或者我如何处理上面的错误?

另外还有一件事:有没有办法隐藏查询中没有相应行的任何列(例如:上例中的 Agent2 列)?