Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Converting Week Number to Date

Posted on 2008-06-16
6
Medium Priority
?
3,220 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
  • 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

972 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