whoops, I replied to the wrong damn thread, my fault...this thread opened
"dba123" wrote:
> I am starting to wonder if this is an early SSRS 2005 bug. I'm about to pull
> my hair out...here's my thread
>
>
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=266724&SiteID=1&mode=1 >
> its seriously handicapping me since I cannot do this one in SQL...it's just
> way too complicated for SQL for my calculation and copying the forumula down
> from the Group definitely is not going to work for me in this situation
> either.
>
>
>
> "Ken Fayal" wrote:
>
> > Wayne,
> > Thanks for responding to my problem. I put simplistic values in there to
> > just show an example without going into too much detail. My real question
> > was if you can use the name of a table grouping as a scope parameter for an
> > aggregate function. The error message leads you to believe that you can use
> > the "name of a containing group" as the scope parameter of an aggregate
> > function. "table1_Group2" would definitely be the name of my containing
> > groupp. But no matter what form of "table1_Group2" I use - it doesn't work.
> >
> >
> > --
> > Ken Fayal
> > Raptor Development, Inc.
> >
> >
> > "Wayne Snyder" wrote:
> >
> > > Other than (perhaps) rounding errors, The average of the group averages
> > > should equal the average of the detail rows..... Can you account for the
> > > difference in value?
> > >
> > >
> > > --
> > > Wayne Snyder MCDBA, SQL Server MVP
> > > Mariner, Charlotte, NC
> > >
> > > I support the Professional Association for SQL Server ( PASS) and it''s
> > > community of SQL Professionals.
> > >
> > >
> > > "Ken Fayal" wrote:
> > >
> > > > Hello,
> > > > I have a report with the following structure in a table:
> > > >
> > > > table1_Group1 Header
> > > > table1_Group2 Header
> > > > Detail Record: =Fields!X.Value
> > > > table1_Group2 Footer =Avg(Fields!X.Value)
> > > > table1_Group1 Footer =Avg(Fields!X.Value, "table1_Group2")
> > > >
> > > > In the table1_Group1 Footer, I want the average of all the table1_Group2
> > > > averages. The figure doesn't come out right if I average all the detail
> > > > records in table1. I specifically need to average only the table1_Group2
> > > > Footer values.
> > > >
> > > > When I use the "table1_Group2" scope parameter, the typical "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, or the name of a
> > > > data set." I am very sure that "table1_Group2" is the name of my containing
> > > > group that I want to average. I have noticed that others with this same
> > > > problem do not have any replies to their questions - so I'm throwing up this
> > > > hail Mary in hopes that someone will be able to help.
> > > >
> > > >
> > > > --
> > > > Ken Fayal