2011-08-30 77 views
0

我需要爲包含聚合數據的矩陣列應用交互式挖掘。報告服務:如何應用矩陣列的交互式排序?

該報告統計的產品在不同的地方銷售:

    Product A   Product B   Product C 
--------------------------------------------------------------- 
Country 1    5     10     4 
    City A     3     0     3 
    City B     2     10     1 
---------------------------------------------------------------  
Country 2    10     5     5 
    City C     2     4     2 
    City D     8     1     3 

降「產品A」的表中的行排序後,應在國家「產品A」的銷售,並且還通過銷售城市進行排序:

    Product A   Product B   Product C 
---------------------------------------------------------------  
Country 2    10     5     5 
    City D     8     1     3 
    City C     2     4     2 
--------------------------------------------------------------- 
Country 1    5     10     4 
    City A     3     0     3 
    City B     2     10     1 

矩陣方案是這樣的:

    | [Product] 
[Country] | [City] | [Count(Product)] 

回答

1

我矩陣中不支持交互排序。

一種解決方法可能是下面的一個:

通過參數和值創建一個排序:

Label     Value 
Country ASC, City ASC  1 
Country DESC, City ASC 2 
Country ASC, City DESC 3 
Country DESC, City DESC 4 

然後在全國建立兩個排序表達式:

=Iif(Parameters!SortBy.Value = 1 OR Parameters!SortBy.Value = 3,Fields!country.Value,"") 
ASCENDING sort 
    =Iif(Parameters!SortBy.Value = 2 OR Parameters!SortBy.Value = 4,Fields!country.Value,"") 
DESCENDING sort 

執行同城市:

=Iif(Parameters!SortBy.Value = 1 OR Parameters!SortBy.Value = 2,Fields!city.Value,"") 
ASCENDING sort 
    =Iif(Parameters!SortBy.Value = 3 OR Parameters!SortBy.Value = 4,Fields!city.Value,"") 
    DESCENDING sort 
+0

用戶如何在「SortBy」值之間切換? – kirschpirogge

+0

通過選擇其中一個可用參數值 – niktrs