[英]In SSRS, How to show two columns in drop down of parameter value?
In SSRS, How to show two columns in drop down of parameter value ? 在SSRS中,如何在参数值的下拉列表中显示两列? For Example, how to show Product id and Name in drop down of parameter ?
例如,如何在参数下拉列表中显示产品ID和名称? Thanks in advance
提前致谢
I would create a Calculated Field which concatenates the ProductID
and ProductName
in the Dataset you're using to populate your Parameter . 我将创建一个计算字段 ,该字段将用于填充Parameter的数据集中的
ProductID
和ProductName
连接起来。
eg with the Dataset : 例如与数据集 :
I created a new Calculated Field called ProductIDName
with the expression: 我创建了一个新的名为
ProductIDName
计算字段 ,其表达式为:
=CStr(Fields!ProductID.Value) & ": " & Fields!ProductName.Value
Now use this new field to populate your Parameter : 现在,使用此新字段填充您的Parameter :
End result: 最终结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.