Hi all,
Firstly: I'm a newbie when it comes to reporting services (previously used to Crystal reports).
This is probably going to appear as a stupid question but here goes.
How do i group on a date time field. I have set up a report with a table and as my group i have selected my datetime field
[code]
=Fields!WeekBegin.Value
[/code]
When i group on this field each record still seems to have its own grouping even though all entries in my test database have the same date. I have noticed that the seconds don't match up on some entries and believe that this may have something to do with it. There are however still duplicates that should be grouped on. I really only want to group on the date part of the Datetime field.
Anyone got any ideas where i am going wrong.
Thanks in advance
Grant
If you only want to group on the date part, you can use the datevalue() function:
=datevalue(Fields!WeekBegin.Value)
or use the Format function to get the date part.
No comments:
Post a Comment