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 / March 2005

Tip: Looking for answers? Try searching our database.

Dynamic Grouping.. Is it possible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian W - 30 Mar 2005 18:54 GMT
Hello All,

I have a table with 2 groups in my report.  When I edit a group I can
specify the expression to "group on" for the groups.  

I would like to be able to make the expression, for the top group, a value
from a report parameter so that the user can specify this when the report
is generated.

The Edit Group Window certainly allows me to pick a report parameter but I
am not sure if it would actually work.. nor what the value of the parameter
should be to make it work.  Is this possible?

Example:

Top Group: User Selectable (Country, State, City)
Second Group: Product
Detail Row: Sales data for that product/place combo

So the user could say he would like to see sales grouped by
country/product, state/product, or city/product.

Is this doable without creating 3 different reports?
Robert Bruckner [MSFT] - 30 Mar 2005 18:59 GMT
Try the following dynamic group expression:
=Fields(Parameters!TopGroup.Value).Value

This requires that the values (or labels) of the TopGroup parameters have
matching field names in your dataset (i.e. Country, State, City).

-- Robert
Signature

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


> Hello All,
>
[quoted text clipped - 20 lines]
>
> Is this doable without creating 3 different reports?
Brian W - 31 Mar 2005 17:50 GMT
Worked like a charm.  Thanks.
 
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.