我有一个计算得出的SSRS,可以在其中连接字符串和字段。我如何使用&。最好的方法是什么?
=iif(Fields!TYPE.Value= "A", "participated in" &Fields!NAME.Value& "'s game",
iif(Fields!TYPE.Value= "N", "did not participate in" & Fields!NAME.Value & "'s game",
"###ERROR###"
))
参加了Patrick的游戏 要么 没有参加帕特里克的比赛
答案 0 :(得分:0)
尝试以下
=IIF(Fields!TYPE.Value= "A", "participated in" AND Fields!NAME.Value= "'s game",
IIF(Fields!TYPE.Value= "N", "did not participate in" AND Fields!NAME.Value="'s game",
"###ERROR###",nothing ),nothing)
答案 1 :(得分:0)
&
是连接字符串的正确方法,您在第一个&
和第二个{{1}
=IIF(Fields!TYPE.Value= "A",
"Participated in " & Fields!NAME.Value & "'s game",
IIF(Fields!TYPE.Value= "N",
"Did not participate in " & Fields!NAME.Value & "'s game",
"###ERROR###"
)
)