reporting-services - 在 iif 语句中连接字符串和字段
问题描述
我有一个 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###"
))
参加了帕特里克的比赛或没有参加帕特里克的比赛
解决方案
试试下面
=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)
推荐阅读
- google-apps-script - 无法从电子表格中获取图表
- jquery - jQuery - 基于其他属性值获取元素属性
- javascript - CKEDITOR 和 KCFINDER 上传工作,图像缩略图浏览失败
- bash - 当对开头进行查找和替换时,如何在行尾添加字符?
- gnuplot - Gnuplotting CPU 负载和 %CPU
- javascript - 无法使用 [ngStyle] 渲染从 API 接收的样式
- docker - 在 gitlab-ci 的 docker executor 中添加到 /etc/hosts
- laravel - PHPUnit:将文件内容发布到端点
- ios - 目标C中具有撤消功能的多重操作
- python - 将具有相同名称的多个 tar 文件解压缩到串联/附加文件