Formula Wk1, Wk2 etc

I am developing a graph (CR XIR2)

On the X Axis I want to show Wk1, Wk2, Wk3 etc to Wk52

This will be based on a datetime field called Created in the format of 2009-08-19 12:41:22.650 i.e. yyyy-mm-dd hh.mm.ss

Is there a formula I can use to get it into Wk1, Wk2 etc
Mark WilsonBI DeveloperAsked:
Who is Participating?
 
mlmccCommented:
Try using a formula like this as the week axis

Local Numbervar weekdiff;
weekdiff := DateDiff('w',Date(2011,3,1),{Table1.myDate});
"wk-" & CStr(weekdiff+1,"00")

mlmcc
0
 
mlmccCommented:
Choose the date field s the axis value.
You can then change it to group by weeks

mlmcc
0
 
Mark WilsonBI DeveloperAuthor Commented:
Thanks I should have stated I need Wk 1 to start on the 03/01/2011

If I choose by week on the X Axis I still have to edit each Axis Label and change it to Wk1, Wk2 etc
0
 
mlmccCommented:
Will that always be the start date or can the user select any start date?

mlmcc
0
 
Mark WilsonBI DeveloperAuthor Commented:
That will always be the start date
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.