我有2个数据集:
数据集1如下所示:
**Name** | **Food1**
James | Apple
John | Banana; Orange
Jane | Apple; Banana; Chocolate
数据集2:
**Food2** | **Property**
Apple | Fruit
Banana | Fruit
Chocolate| Snack
Orange | Fruit
所以现在我有一个数据集2作为主数据集的表。现在我想让桌子给我这样的东西:
**Food** | **Name**
Apple | James; Jane
Banana | John; Jane
Chocolate| Jane
Orange | John
我试过这个:
Join(LookupSet(Fields!Food2.Value, Fields!Food1.Value, Fields!Name.Value, "Dataset1"), "; ")
但随时“Food2.Value”想要与“Food1.Value”进行比较,它什么都不返回。我带有此代码的返回表如下所示:
**Food** | **Name**
Apple | James
Banana |
Chocolate|
Orange |
我也试过这个,但它也不起作用:
Join(LookupSet(Fields!Food2.Value, Split(Fields!Food1.Value, ";"), Fields!Name.Value, "Dataset1"), "; ")
我会非常感谢任何帮助!