如何从SSRS中的行组获取文本框中的单个值

时间:2017-06-15 15:29:23

标签: reporting-services

我有以下表格行组:

名称|百分比| val1 | 67%| val2 | 33%|

我想知道是否可以在文本框中获取val1的百分比?谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

Since your percentage is calculated with the rowcount of val1 to the total rows you can use the expression below:

= SUM(Iif(Fields!Name.Value = "val1",1,0))/COUNTROWS("AllReport")

The sum actually counts the rows with value equal to "val1"