Link to home
Start Free TrialLog in
Avatar of Brenda Wilkerson
Brenda WilkersonFlag for United States of America

asked on

Error in SSRS "Aggregate expression without scope

I am trying to concatenate 3 columns in a textbox in SSRS and get the following error:
The Value expression for the textbox Name uses an aggregate expression without a scope.  A scope is required for all aggregates used outside of a data region unless the report contains exactly one data set.  Below is the expression I am using for the textbox.      
What am I doing wrong?
=First(Fields!First_Name.Value, "Driver") &" "& First(Fields!Middle_Name.Value, "Driver")&" "& First(Fields!Last_Name.Value, "Driver")

Open in new window

Avatar of Tony303
Tony303
Flag of New Zealand image

I tried your syntax but modified to my report and could use the textbox anywhere, header or in table rows.

Is "Driver" your dataset?
Does this article help also?
http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/b2fdefc9-ae76-43cc-a944-e587658c480b/
Avatar of Brenda Wilkerson

ASKER

Yes.  It is a  website data source.  The article said to specify the dataset which I have so I cannot figure out what the problem.  
SOLUTION
Avatar of Tony303
Tony303
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Put space between variable and & and it worked.
Resolved
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great