[英]How to get count of each item in my SSRS report using an expression in the RDL file
I am a noob in SSRS reports. 我是SSRS报告的菜鸟。 So please forgive any mistakes in the question. 因此,请原谅问题中的任何错误。 I have a SSRS report which looks like this 我有一个SSRS报告,看起来像这样
monday tuesday wednesday thursday friday saturday sunday
ABC
ABC
DEF
ABC
DEF
I need to calculate count of each item in the list as follows 我需要计算列表中每个项目的数量,如下所示
ABC 3 ABC 3
DEF 2 防御2
Is there a way to do this in the RDL using an expression such as aggregate or count 有没有一种方法可以在RDL中使用诸如聚合或计数之类的表达式
Assuming you have a tablix with (monday, tuesday, wednesday, ...) being your column groups and (ABC, ABC, DEF, ...) being your row groups all you need to do is =COUNT(Fields!Foo.Value)
in each cell across. 假设您有一个Tablix,其中(星期一,星期二,星期三,...)是您的列组,而(ABC,ABC,DEF ...)是您的行组,那么您要做的就是=COUNT(Fields!Foo.Value)
。 The local (grouped) scope will be applied. 将应用本地(分组)范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.