Hope you are using SSRS 2008R2:
R2 introduced a search function that is ideal for this scenario.
=Lookup( Fields!ProductUID.Value ,Fields!ProductID.Value,Fields!Price.Value,"PriceDataSet")
The Lookup function above will check the first parameter ("Fields! ProductUID.Value") in the current data set, then find the corresponding value in the field specified in the second parameter ("Fields! ProductID.Value") in the data set specified in the fourth parameter. Then the value of the third parameter is evaluated in this row of the data set and returned.
A bit confusing, but very helpful.
In your case, you can use this in a text field with a calculated static number:
=Lookup( Month(DateAdd(DateInterval.Month, -1, GetDate())), Fields!MonthID.Value, Fields!Name.Value, "DataSet1")
This should calculate the number for the last month, and then look for a match in DataSet1.
Jamie f
source share