Allow multiple values issue on SSRS

只谈情不闲聊 提交于 2020-01-05 04:54:16

问题


I would like to select multiple values parameter on SSRS. I used depended dropdown parameter. For example my type parameter data set is:

    select '<All>' 'TYPE'
union
    SELECT DISTINCT STR_TYPE   'TYPE'
        FROM [DBO].[MMWLOTS] L
        JOIN  [DBO].[MMWLOTPRPVALS]  P
    ON P.LOTPK=L.LOTPK
        JOIN [DBO].[LFP_MATERIALS] M
    ON M.STR_MATERIAL_ID=L.DEFID 

my class parameter's dataset code is: (class parameter dropdown list depends on type parameter value)

    select '<All>' 'CLASS'
union
    SELECT DISTINCT STR_CLASS 'CLASS'
    FROM [DBO].[MMWLOTS] L
        JOIN  [DBO].[MMWLOTPRPVALS]  P
    ON P.LOTPK=L.LOTPK
        JOIN [DBO].[LFP_MATERIALS] M
    ON M.STR_MATERIAL_ID=L.DEFID 
    WHERE (@MATERIAL_TYPE= '<All>' OR  M.STR_TYPE in (@MATERIAL_TYPE))

Normally I can show my report like this:

When I select the "allow multiple values" for class parameter and If I select two values for class, I face to below error:

How should I pass this error? Could you help me about this issue?

Thanks:)

来源:https://stackoverflow.com/questions/44432133/allow-multiple-values-issue-on-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!