Solved

Converting Week Number to Date

Posted on 2008-06-16
6
3,153 Views
Last Modified: 2013-11-27
Hi,
I am generating a report that displays trend data on a week by week basis.  I grouped my data set on the completion date by weeks:  Format("ww",Fields!Quantity.Value).  Now that I have the week number for the groups, I would like to display the chart using the Monday(or Friday) as the X axis label.  Is there a way to do this?  I'm using SQL Reporting Services 2005.
Thanks in advance!
0
Comment
Question by:keicy01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 18

Expert Comment

by:chrismc
ID: 21800377
Not quite sure I understand.

You're grouping the data by week number but want to label it with day name?

0
 

Author Comment

by:keicy01
ID: 21802050
chrismc,
yes, I'm grouping the data by week successfully, I just can't get the label to display correctly.  I will like the label to display the first day of that week no.
thanks.
0
 

Accepted Solution

by:
keicy01 earned 0 total points
ID: 21802697
I was able to figure it out, see below:
=Format(DateAdd("d",(2 - Weekday(Fields!CompletedOn.Value)),Fields!CompletedOn.Value),"MM/dd")
This code returns the Monday of the completed date field in the MM/dd format.
Thanks.
0
 
LVL 18

Expert Comment

by:chrismc
ID: 21803931
Fine by me.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question