I need to combine the results of multiple similar Stored Procedures into a single Tablix.
I'm using multiple Stored Procedures that return the same data, but for varying Units. So in one "cell" (I don't know if that is the correct terminology for a data field in a Tablix) I have an Expression like so:
=IIF((Fields!Week.Value="WK1"),Fields!Price.Value,"")
...which conditionally displays data when the value of the "Week" field is "WK1" and the Stored Procedure for a Unit value of "BARNEY" is the dataset.
After that (on the same row, in a column to the right in the Tablix) I need to show the same data from a different Stored Procedure where the Unit value being used is "RUBBLE". I need the Expression to reference an existing value (ItemCode) in the Tablix from the first Stored Procedure, so that both cells on the row are displaying values for the same ItemCode (but different Units).
That cell/field is a simple pointer to the ItemCode value returned from the Stored Procedure:
=Fields!ItemCode.Value
How can I use a formula to display the data for the ItemCode that the initial Stored Procedure is displaying data for on that row. Something like this:
=IIF((Fields!Week.Value="WK1" AND Fields.ItemCode=[Existing Item Code value in this row]),Fields!Price.Value,"")
?
IOW, what do I need in place of the "Existing Item Code value in this row" to make this work? Could it be something like this:
=IIF((Fields!Week.Value="WK1" AND Fields.ItemCode=TextboxItemCodeData.Value),Fields!Price.Value,"")
?