2016-09-16 71 views
0

我已經從Adventureworks數據庫中製作了這樣的圖表。如何在SSRS中的相同圖表區域添加兩個系列?

enter image description here

我用下表,從AdventureWorks數據庫查詢。

Employee | OrderYear | OrderMonth |ProdCat | Sales 
============================================================= 
Shu Ito | 2002  | April  |Accessories| 565.222000 
Shu Ito | 2002  | April  |Clothing | 917.077000 
Shu Ito | 2002  | April  |Components | 6149.999400 
Shu Ito | 2003  | April  |Accessories| 288.859000 
Shu Ito | 2003  | April  |Clothing | 1661.651092 
Shu Ito | 2003  | April  |Components | 11497.001600 
Shu Ito | 2004  | April  |Accessories| 4960.536837 
Shu Ito | 2004  | April  |Clothing | 7947.791216 
Shu Ito | 2004  | April  |Components | 29866.476000 

圖表屬性是這樣的。 enter image description here

我想要的是在每年(即另一系列)下添加另一列,記錄當年的總銷售額。 (配件,服裝和配件的總銷售額)

我發現,我需要添加一個使用表達式的系列,但我無法編寫表達式。

回答

0

我認爲你可以添加一個計算列,對期間的銷售額進行總和並將其顯示在輔助軸上。

還有一個選項(雖然我不能告訴你它是什麼,因爲我沒有ssrs在我面前),它允許你添加一個「分組」,它將顯示總和/計數等x軸組中的項目。

我會看看我是否可以把它釘在你身上