使用多组切换可以看到SSRS隐藏行

时间:2017-05-18 03:20:37

标签: ssrs-2008 ssrs-2008-r2 ssrs-2012 reportingservices-2005

我有多组查询 我想要显示唯一的第一个和旁边的加号,所以当用户点击加号时,它会打开较低级别的组,并且它有另一个加号

+USA
+Australia

点击美国旁边的标志时,应显示此

-USA
         +Texas
         +California
+Australia

点击德克萨斯旁边的标志时,它应显示此

-USA
         -Texas
                  +Dallas
                  +Austin
                  +Houston
         +California
+Australia

点击达拉斯时显示

-USA
         -Texas
                  -Dallas
                           Tom
                  +Austin
                  +Houston
         +California
+Australia

我已完成报告,方法是隐藏所有行并按上面的行

切换

但由于某种原因,当我为CName切换C3时,它可以正常工作,现在当我隐藏C3并由C2切换由于某种原因CName再次显示!!

我不知道为什么,任何人都知道为什么?

由于

这是我的查询

select  'USA'as C1,'Texas' as C2,'Dallas'as C3,'Tom' as CName UNION
select  'USA'as C1,'Texas' as C2,'Austin'as C3,'Adam' as CName UNION
select  'USA'as C1,'Texas' as C2,'Huoston'as C3,'Ken' as CName UNION
select  'USA'as C1,'California' as C2,'Los Angeles'as C3,'Dave' as CName UNION
select  'USA'as C1,'California' as C2,'San Fransisco'as C3,'Sam' as CName UNION
select  'USA'as C1,'California' as C2,'Hollywood'as C3,'Sean' as CName UNION
select  'Australia'as C1,'NSW' as C2,'Sydney'as C3,'Richard' as CName UNION
select  'Australia'as C1,'NSW' as C2,'Dubbo'as C3,'Arnold' as CName UNION
select  'Australia'as C1,'VIC' as C2,'Melbourne'as C3,'Mike' as CName UNION
select  'Australia'as C1,'VIC' as C2,'Doncaster'as C3,'Matt' as CName UNION
select  'Australia'as C1,'VIC' as C2,'Craigieburn'as C3,'Kate' as CName UNION
select  'Australia'as C1,'QLD' as C2,'Brisbane'as C3,'Edward    

1 个答案:

答案 0 :(得分:0)

如果我理解正确,我认为最简单/最简单的选项是通过报告向导创建一个新的表格报告,按C1,C2和C3分组,其中CName是详细信息。{{3}让它步进并启用DrillDown。Grouping最终结果应该按照您的意愿运行。Drilldown