带有“IN”查询的多值参数。

问题描述:





我有一份带有@Region的SSRS报告,作为根据区域过滤值的参数。



@Region参数可以取以下值:



美洲

非洲

亚太地区



如果用户选择美洲或非洲,但如果用户选择

亚太地区,该报告可以正常工作显示没有数据,因为亚太地区的实际价值是亚洲,日本,澳大利亚。即对于作为Asia-Pac的参数标签,我将参数的值设置为亚洲,日本,澳大利亚。



我用于填充数据集的查询是:



从myTable中选择*其中Region(@Region)



我们非常感谢任何帮助。

Hi,

I have an SSRS report with @Region as a parameter used for filtering values as per the region.

The @Region parameter can take the following values :

Americas
Africa
Asia-Pac

The report works fine if the user chooses Americas or Africa but if the user chooses
Asia-Pac, the report shows no data as the actual value for Asia-Pac is
''Asia'',''Japan'',''Australia''. i.e. for the parameter label as Asia-Pac I am setting the value for the parameter as ''Asia'',''Japan'',''Australia''.

My query used for populating the dataset is :

select * from myTable where Region in (@Region)

Any help would be much appreciated.

根据您的要求,我理解,



如果有任何复选框或用户选择的所有复选框都应显示相应的数据。



这个在RC上@region参数转到属性选择复选框允许多个值然后您的已发布将被解决
As per your requirement i understood ,

if any check box or all check boxes selected by user the corresponding data should be display.

for this in RC on @region parameter go to properties select check box allow multiple values then your issued will be resolved