我有一個多值參數@products
,主數據集必須根據提供給@products
的值獲取特定ID的數據。 我將@products的可用值作爲特定值(a,b和c)。主查詢是一樣的東西多值參數SSRS
select version,date from table
where (@products=a and id in('1','2','3')
or @products=b and id in ('4','5','6')
or @products=c and id in('7','8','9'))
當選擇@products
只有1個值也能正常工作,但在選擇多個值拋出一個錯誤。
任何人都可以請幫我解決這個問題。
未聲明@ products.The錯誤是數據集'Common'的查詢執行失敗',' – user2974732
@avinash附近的語法不正確傳遞給數據集「Common」的參數的值爲as = Parameters!僅限於Product.Value。 – user2974732