I'm using Report Builder 3.0 and I am trying to populate a drop list from a query in my report.
I have two datasets.
The first dataset is a stored procedure that is passing three parameters, @StartDate, @EndDate, @FamilyCode
The second dataset is pulling the family code off a table that the stored procedure uses.
On my second dataset I can query the field just fine. I then proceeded to the parameter and assigned the secondary query to the Available and Default values but once I run the report I am given the following error:
The Value expression for the text box ‘Textbox1’ refers directly to the field ‘familycode’ without specifying a dataset aggregate. When the report contains multiple datasets, field references outside of a data region must be contained within aggregate functions which specify a dataset scope.
I am at lost and cannot figure out what to do next.