使用'报告构建器表达式

时间:2016-10-27 23:22:17

标签: sql-server reportbuilder

我有一个名为series的字段,其中包含了这个表达式,'在这种情况下意味着什么?

=(字段!PropertyID.Value) ' = IIF(参数!CombineProperties.Value = TRUE AND(Fields!Campus.Value<>""),Fields!Campus.Value,Fields!PropertyName.Value)

1 个答案:

答案 0 :(得分:0)

这是在ssrs报告中在运行时解析的标签或变量的SSRS表达式。这里的要点是:

起始=(Fields!PropertyID.Value)没有意义,因为您无法设置变量,但是,'它是这样的:

var result=null;
if (CombineProperties && Campus.Length > 0) 
    result=Campus
else
   result=PropertyName

再次阅读您的帖子后,我认为您正在尝试Concatenate字符串。这是你的最终目标吗?

=CSTR(Fields!PropertyID.Value) + IIF((Parameters!CombineProperties.Value = True) AND (Fields!Campus.Value<>""), Fields!Campus.Value,Fields!PropertyName.Value)

更新

Doh !,我在VB上生锈了。我相信撇号会说出一条线。之后的一切都是&#39;被忽略了。 DOH!