2017-05-18 68 views
0

我有多組查詢 我想要唯一的第一個顯示和加號旁邊,所以當用戶點擊加號時,它打開下層組,它有另一個加號SSRS隱藏行變得可見與多組切換

+USA 
+Australia 

當單擊旁邊的登錄到美國應該顯示這個

-USA 
     +Texas 
     +California 
+Australia 

當點擊符號旁邊德克薩斯它應該顯示這個

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

當點擊達拉斯它顯示了當我的CNAME通過切換做

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

我已讓隱藏的切換由行上述

都行,但由於某種原因做了報告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  

回答

0

如果我理解正確的話,我認爲最簡單的/最簡單的選擇是由C1經歷報表嚮導,並創建一個新的表格報告,組,C2和C3以CName爲細節。 Grouping使其步進並啓用DrillDown。 Drilldown最終結果應該如你所願。 enter image description here

+0

這就是我所做的,但CName仍然顯示,當我使C2由C2切換時..嘗試它你會明白 – asmgx