[英]Concatenation and count SSRS report
I have this dataset :我有这个数据集:
Product![]() |
Account![]() |
---|---|
Product X![]() |
Account 1![]() |
Product X![]() |
Account 1![]() |
Product Y![]() |
Account 1![]() |
Product Y![]() |
Account 1![]() |
Product Y![]() |
Account 1![]() |
And in my Table matrix i want this output在我的表格矩阵中,我想要这个输出
Product![]() |
|
---|---|
Account 1![]() |
Product X 2;![]() ![]() |
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.