[英]SSRS combining values from multiple rows (lookupset?)
I'm trying to display the programs a contact is attached to. 我正在尝试显示联系人附加到的程序。 When the contact is attached to multiple programs, I can only display it by having multiple rows, but I'd like to have it in one.
当联系人附加到多个程序时,我只能通过显示多行来显示它,但我希望将其放在一个行中。
Currently my data looks like this (it's currently grouped by User ID): 目前,我的数据如下所示(当前按用户ID分组):
However, I'd like to group the data like so: 但是,我想像这样对数据进行分组:
I've tried a couple things, the most promising being lookupset - My code looked like this, but it just throws an "#Error" when I run the report: 我已经尝试了几件事,最有希望的是lookupset-我的代码看起来像这样,但是当我运行报告时,它只会抛出“ #Error”:
=JOIN(LookupSet(Fields!UserID,Fields!UserID,Fields!PMT_ABB_Name,"DataSet1"), ", ")
Any advice? 有什么建议吗?
You need to group on UserId
- assuming it's unique. 您需要对
UserId
分组-假设它是唯一的。
Then in your Program
text box, use the expression: 然后在“
Program
文本框中,使用表达式:
=JOIN(Fields!Program.value,", ")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.