Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / October 2005

Tip: Looking for answers? Try searching our database.

Perform aggregate against group value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SevDer - 26 Oct 2005 21:36 GMT
Is there a way that I can perform my aggregate function agains the value in
group row instead of details row?
Because I do not show numeric values in the details but group row.

Signature

SevDer
http://www.sevder.com
A new .NET Source For .NET Developers

Robert Bruckner [MSFT] - 27 Oct 2005 03:57 GMT
Did you try the Previous aggregate function? Just place it into the group
header like =Previous(Fields!Country.Value) and it should work. Note: the
previous function has only one argument.

-- Robert
Signature

This posting is provided "AS IS" with no warranties, and confers no rights.


> Is there a way that I can perform my aggregate function agains the value
> in group row instead of details row?
> Because I do not show numeric values in the details but group row.
SevDer - 27 Oct 2005 15:45 GMT
Hi Robert,

I tried Previous as you suggested but this time I endup with empty
datacell..
However, please excuse me that I was not clear enough previously, I want to
perform this aggregate against the group in the footer. So I tried to use
the full previous function as described in the help "Previous(Expression,
AggFunction, PreviousScope, AggScope)" but it basically fails as you've
mentioned.

Anyway, do you have a solution for me?
I would like to sum my group values in the footer.

Signature

SevDer
http://www.sevder.com
A new .NET Source For .NET Developers

> Did you try the Previous aggregate function? Just place it into the group
> header like =Previous(Fields!Country.Value) and it should work. Note: the
[quoted text clipped - 7 lines]
>> in group row instead of details row?
>> Because I do not show numeric values in the details but group row.
Robert Bruckner [MSFT] - 31 Oct 2005 00:23 GMT
> I would like to sum my group values in the footer.
Maybe I'm missing something, but assuming you group on
=Fields!FieldName.Value, just adding an expression like
=Sum(Fields!FieldName.Value) in the table footer should sum the group
values.

-- Robert
Signature

This posting is provided "AS IS" with no warranties, and confers no rights.


> Hi Robert,
>
[quoted text clipped - 20 lines]
>>> in group row instead of details row?
>>> Because I do not show numeric values in the details but group row.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.