首页 > 解决方案 > 在 SSRS 的 where 子句中使用参数

问题描述

我正在努力将 @parameter 与 where 子句一起使用。

实际上,我的要求是在从参数复选框中选择一月和二月两个月的数据时在报告中显示它们。

我在用 Union All select Months from table where @MonthSelected = 'Jan' AND @MonthSelected ='Feb'

我想将两者结合在 where 子句中,如果两者都被选中,那么它将根据需要显示数据,否则不显示。

但是我在用@MonthSelected 和AND 编写where 子句时面临挑战。

如果有人知道,请帮助我。

谢谢

标签: reporting-servicesparametersssrs-2008reportingreportingservices-2005

解决方案


推荐阅读