Solved

Converting Week Number to Date

Posted on 2008-06-16
6
3,121 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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 …
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…

738 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