您应该能够对此使用查找:
=lookup(Fields!psd_parentproductcategoryid.Value,Fields!psd_parentproductcategoryid.Value.Value, Fields!psd_parentproductcategoryid.Value, "AllCategories")
过滤器部分可能很棘手。我找不到我的例子,但有办法。希望这至少可以让你开始。
**编辑
我有一个名为 Present 的参数。我要过滤数据集时传递的值为0。
这是 tablix 上的过滤器代码:
=iif(Parameters!Present.Value = 0 , lookup(Fields!psd_parentproductcategoryid.Value,Fields!psd_parentproductcategoryid.Value.Value, Fields!psd_parentproductcategoryid.Value, "AllCategories") is nothing, "FALSE", "TRUE"), "TRUE")
**编辑 2
您可以将其添加到过滤器中,以仅返回其他数据集中不存在的值。
IIF(=lookup(Fields!psd_parentproductcategoryid.Value,Fields!psd_parentproductcategoryid.Value.Value, Fields!psd_parentproductcategoryid.Value, "AllCategories") is nothing, Fields!psd_parentproductcategoryid.Value, nothing)