[英]ssrs parameter expression condition
In SSRS (2014) I have created the Placeholder. 在SSRS(2014)中,我创建了占位符。
The value of Placeholder is picks from SQL 2014 DB StoredProcedure. 占位符的值选自SQL 2014 DB StoredProcedure。
In the Placeholder properties, I have below expression, 在占位符属性中,我有以下表达式,
=Parameters!BRN.Value
When I run the report, 当我运行报告时,
Step 1: Report asks BRN value (which is integer). 步骤1:报表询问BRN值(整数)。 When I enter value as "1"
当我将值输入为“ 1”时
Step 2: Report displays 1 步骤2:报告显示1
If I pass BRN value as 2 it displays 2 如果我将BRN值传递为2,则显示2
But I want below results, 但是我想要下面的结果,
Step 1: When Report asks BRN value (which is integer). 步骤1:当Report询问BRN值(整数)时。 If I enter value as "1" then it should display as "Winter"
如果我输入的值为“ 1”,那么它应该显示为“ Winter”
or If I enter value as "2" then it should display as "Summer" 或如果我将值输入为“ 2”,则该值应显示为“夏季”
or If I enter value as "3" then it should display as "Spring" 或如果我将值输入为“ 3”,则该值应显示为“ Spring”
or If I enter value as "4" then it should display as "Sunny" 或如果我将值输入为“ 4”,则该值应显示为“晴天”
How can I do this please? 我该怎么做?
= Switch(Parameters!BRN.Value = 1,“ Winter”,Parameters!BRN.Value = 2,“ Summer”,Parameters!BRN.Value = 3,“ Spring”,Parameters!BRN.Value = 4,“ Sunny” )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.