【发布时间】:2016-11-16 00:17:35
【问题描述】:
我有两个Tablix:Tablix A 和 Tablix B:
每个Tablix 都连接到不同的datasets,如下图所示:
如何通过在 Tablix A 中查找数据来填充 Tablix B?
例如:Tablix A 包含车辆模型,但我还需要使用两个数据集中的 VehicleID 为 Tablix B 填充车辆颜色。
使用Lookup Function,这仅在两个数据集都是同一个 tablix 中的引用时才有效,我如何使用单独的 tablix 做到这一点?
尝试使用单独的 tablix,我收到以下错误:
[rsFieldReference] The Value expression for the text box
‘Textbox57’ refers to the field ‘VehicleColor’.
Report item expressions can only refer to fields within the current dataset scope or,
if inside an aggregate, the specified dataset scope.
Letters in the names of fields must use the correct case.
插图:
【问题讨论】:
-
你的表情是什么。
-
我正在使用这里解释的表达式:msdn.microsoft.com/en-us/library/ee240819.aspx
=LookupSet(Fields!TerritoryGroupID.Value, Fields!ID.Value, Fields!StoreName.Value, "Stores") -
你试过只使用“查找”
标签: reporting-services ssrs-2012 ssrs-tablix