DJWheezyWeez
Technical User
Hi,
I'm new to sql and its syntax/functions but here goes. Basically, I have a query that is returning duplicate values because of the tables I've linked. When I do =Sum(Fields!estimatedvalue.Value), it sums for every value including the duplicating ones on the detail level. What I want it to do is only sum values at the group level. Using my little knowledge of sql, I tried =Sum(Fields!estimatedvalue.Value, "name"), 'name' being the name of the group I want it to sum, but I get the error:
"An error occurred during local report processing. The definition of the report '/SalesReport' is invalid. The Value expression for the text box 'Textbox51' has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, of the name of a dataset."
If my rambling made sense, does anyone have any suggestions? Any help is greatly appreciated.
-DJWW
I'm new to sql and its syntax/functions but here goes. Basically, I have a query that is returning duplicate values because of the tables I've linked. When I do =Sum(Fields!estimatedvalue.Value), it sums for every value including the duplicating ones on the detail level. What I want it to do is only sum values at the group level. Using my little knowledge of sql, I tried =Sum(Fields!estimatedvalue.Value, "name"), 'name' being the name of the group I want it to sum, but I get the error:
"An error occurred during local report processing. The definition of the report '/SalesReport' is invalid. The Value expression for the text box 'Textbox51' has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, of the name of a dataset."
If my rambling made sense, does anyone have any suggestions? Any help is greatly appreciated.
-DJWW