all groups > sql server reporting services > march 2005 >
You're in the

sql server reporting services

group:

Grouping by date


Grouping by date CCP
3/5/2005 1:21:02 AM
sql server reporting services: Hi,
I need to group the result set on a weekly basis.
The input has only the start date and end date and i need to group the
result on weekly basis...

Thanks in advance for ur advice...

Re: Grouping by date Wayne Snyder
3/5/2005 3:15:39 PM
I generally do this in the query...

add a column to the select statement

datename( wk,end_date) as Week

then group on that... If you span years add year and week instead of just
week..

Hope this helps...

--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)

I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org

[quoted text, click to view]

Re: Grouping by date CCP
3/7/2005 2:33:03 AM
Thanks Wayne ,
That really helped me...
now im caught in a new issue.
when i insert a group in the table for the weekenddate.the alternate
coloring of rows has disappeared...
i cant get where im going wrong...
im grouping the record based on the weekend date...

Thanks


[quoted text, click to view]
AddThis Social Bookmark Button