2013-02-22 92 views
0

我在SSRS 2008中創建了2個報表。我現在計劃將報表合併爲一個報表,並允許用戶通過下拉選項選擇報表類型。SSRS參數分組

這些報告帶回相同的數據,但分組方式不同。我不知道如何根據報告類型改變分組。

基本上我想這樣做

when Parameters!Report_Type.Value = "D" group by Fields!txiii_commodity.Value else no group 

我IIF試過了,開關,但從來沒有得到想要的結果。

有人可以請幫忙。

在此先感謝

克里斯

回答

0

我這樣做是一個非常簡單的例子。樣本數據集:

enter image description here

分組上表達:

enter image description here

與一個組創建報告

=IIf(Parameters!Report_Type.Value = "D", Fields!txiii_commodity.Value, "Ungrouped") 

也用這種方式顯示柱那個報告。

結果:

enter image description here

enter image description here