[英]Report Builder expression SQL list certain values only
In report builder i'm trying to only get the values containing 'Office' from the software list. 在报表生成器中,我试图仅从软件列表中获取包含“ Office”的值。
=Fields!Software.Value
This will get the entire list of all installed software but i want to list the values with "Office". 这将获取所有已安装软件的完整列表,但我想使用“ Office”列出这些值。
I have tried something like : 我已经尝试过类似的东西:
=Fields!Software.Value = "Office"
=IIF(Fields!Software.Value = "Office", Fields!Software.Value)
Can't seem to figure out how to achieve this. 似乎无法弄清楚该如何实现。
Use Filter expression: 使用过滤器表达式:
=Join(Filter(Fields!Software.Value,"Office"),",")
I added Join so you can display the list in Text Box. 我添加了加入,以便您可以在文本框中显示列表。
If you want to get particular element from the list, for example the first one, use this: 如果要从列表中获取特定元素,例如第一个元素,请使用以下命令:
=Filter(Fields!Software.Value,"Office")(0)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.