2012-12-30 15 views
1

我知道這可能是一個非常新手的問題,但我想在CASE和WHEN/THEN語句中使用SSRS中的查詢。但這是可以允許的嗎?附圖: enter image description here下面是在SSRS中實現cascacding參數的合法方法嗎?

這是我的SSRS的屏幕,所以我有6個參數 - 最後一個ClientResponseRange隱藏並取決於ResponseRange。對於所有的情況,但一個,ClientResponseRange剛剛獲得準確傳遞給它的相同參數ResponseRange了:

enter image description here

所以那麼下面這些則params的圖片:

enter image description hereenter image description here

+1

nope ........... not if you want to test individual members of the comma separated string –

+0

@MitchWheat _ OK,謝謝! – Coffee

+0

@MitchWheat - 嗯,實際上整個逗號分隔的字符串是一個文本塊,並在後端有一個存儲過程。這需要照顧逗號 - 所以我只需要將它傳遞給SPROC就像'20,21,22' – Coffee

回答

1

你應該設置一個虛擬查詢或內置的vb代碼,其中包含@ResponseRange並吐出所需的字符串。

例如,SQL:

Select case when :ResponseRange= '3' then null 
      Else :ResponseRange 
     End as out1 

那麼就應該用「從查詢中獲取值」選項,通過這個查詢設置@ClientResponseRange的默認值。

相關問題