11

I have two datasets:

My main dataset (Students) looks like this:

Student Name      | PID
Anakin SkyWalker  | 1
Obi-Wan Kenobi    | 2

And my second dataset (Awards) looks like this:

PID  | Xtrnl_Award_Type | Xtrnl_Award_Date
1    | BS               | 200912
2    | BA               | 200605
2    | MS               | 200905

What I want to get is this:

Student Name      | Awards
Anakin SkyWalker  | BS - 200912
Obi-Wan Kenobi    | BA - 200605, MS - 200905

The LookupSet function can only return one field in the second dataset. Is there some other way I can get the results I want? The second dataset is on another server.

4

2 回答 2

13

您可以使用表达式作为目标数据集字段:

=Join(LookupSet(Fields!PID.Value
    , Fields!PID.Value
    , Fields!Xtrnl_Award_Type.Value & " - " & Fields!Xtrnl_Award_Date.Value
    , "Awards"), ", ")

根据您的数据为我工作:

在此处输入图像描述

于 2013-10-16T18:41:09.790 回答
0

我刚刚意识到我可以通过在我的第二个数据集中添加一个计算字段来获得我想要的结果,该数据集结合了这两个字段。

于 2013-10-16T18:41:32.677 回答