Hello,
I'm messing around with Dhookom's calendar style report and it works like a charm, BUT.... i'm missing some data in some weeks.
This is the DateAdd line I use
, I basically want all first days of the week (week starting on Monday). But I also only want 1 month on a sheet and on some I'm missing the 1st of the month because of this. I'm showing my sql result below.
As you can see in the results it automatically makes a "double" date when the month changes for februari and march, but NOT for april and I think here is where the fault is.
Anybody suggestions???
Thanks,
Richard
I'm messing around with Dhookom's calendar style report and it works like a charm, BUT.... i'm missing some data in some weeks.
This is the DateAdd line I use
Code:
WeekOf: DateAdd("d",-Weekday([RotationDate])+2,[RotationDate])
Code:
WeekOf WeekNum YearNum MonthNum
1/1/2007 1 2007 1
1/8/2007 2 2007 1
1/15/2007 3 2007 1
1/22/2007 4 2007 1
1/29/2007 5 2007 1
1/29/2007 5 2007 2
2/5/2007 6 2007 2
2/12/2007 7 2007 2
2/19/2007 8 2007 2
2/26/2007 9 2007 2
2/26/2007 9 2007 3
3/5/2007 10 2007 3
3/12/2007 11 2007 3
3/19/2007 12 2007 3
3/26/2007 13 2007 3
4/2/2007 14 2007 4
4/9/2007 15 2007 4
4/16/2007 16 2007 4
4/23/2007 17 2007 4
4/30/2007 18 2007 4
4/30/2007 18 2007 5
5/7/2007 19 2007 5
As you can see in the results it automatically makes a "double" date when the month changes for februari and march, but NOT for april and I think here is where the fault is.
Anybody suggestions???
Thanks,
Richard