Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Datepart split week over month issue

$
0
0
Hi All,I am writing report to display some IIS site activity, part of the requirement is to produce a trend for user activity for each week of the year.I have written a stored procedure that uses datepart to split year, month and year week number into separate columns. However the problem I am having is that when a week is split over 2 months I end up with the two entries for the same week but across two months which also splits the count of activity into two rows. So when I produce a line chart in SSRS I end up with a dip due to the week total being split.An example would be week number 14 of this year is split over two months, I think I need to add same week number activity counts together but not sure how to handle this in the stored procedure.Ant help would be great.Adam

Viewing all articles
Browse latest Browse all 2791

Trending Articles