简体   繁体   English

串联和计数 SSRS 报告

[英]Concatenation and count SSRS report

I have this dataset :我有这个数据集:

Product产品 Account帐户
Product X产品 X Account 1账户 1
Product X产品 X Account 1账户 1
Product Y产品 Y Account 1账户 1
Product Y产品 Y Account 1账户 1
Product Y产品 Y Account 1账户 1

And in my Table matrix i want this output在我的表格矩阵中,我想要这个输出

Product产品
Account 1账户 1 Product X 2;产品 X 2; Product Y 3产品 Y 3

Thank you for your help谢谢您的帮助

I don't think you will be able to do this directly in SSRS.我认为您无法直接在 SSRS 中执行此操作。

You have a couple of options.你有几个选择。 I would suggest you do this in your dataset query but if your tags are correct then it looks like the dataset is not create from a SQL query.我建议您在数据集查询中执行此操作,但如果您的标签正确,那么看起来数据集不是从 SQL 查询创建的。

Alternatively you could use a matrix and have a row group by account and a column group by product.或者,您可以使用矩阵并按帐户有一个行组,按产品有一个列组。 Then set the data value to COUNT rather then the default SUM .然后将数据值设置为COUNT而不是默认的SUM It won't be in a flat list like you want but might suffice.它不会像您想要的那样在一个平面列表中,但可能就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM