简体   繁体   中英

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; Product Y 3

Thank you for your help

I don't think you will be able to do this directly in 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.

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 . It won't be in a flat list like you want but might suffice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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