You could do this in Crystal with a formula call it 'bucket' as follows:
Sorry - I can't recall the exact syntax and do not have Crystal at the
moment but this is close in VB:
If DueDate < Today Then Bucket = Past Due
If DueDate >= Today and DueDate <= Today + 7 Then
Select Case Weekday(DueDate)
Case 1: Bucket = "Sunday" // 2=Monday, etc.
ElseIf DueDate > Today + 7 and DueDate <= Today + 30 Then
WeekNum = INT(DueDate - Today) /7 //might have to tweak this a bit
Else
// more than a month out
Select Case Month(DueDate)
Case 1 : Bucket = "Jan"
Case 2: Bucket = "Feb"// and so on
End If
Having the 'Bucket' Formula, you can create a pivot table in Crystal with
headings as follows:
Part# Past Due Tue Wed Thu Fri Sat Mon Week-1 Week-2 Week-3 Week-4
Jan Feb
--
Randy Weber
weber.randy@...
(651) 263-1811
http://randallweber.com/
[Non-text portions of this message have been removed]
Sorry - I can't recall the exact syntax and do not have Crystal at the
moment but this is close in VB:
If DueDate < Today Then Bucket = Past Due
If DueDate >= Today and DueDate <= Today + 7 Then
Select Case Weekday(DueDate)
Case 1: Bucket = "Sunday" // 2=Monday, etc.
ElseIf DueDate > Today + 7 and DueDate <= Today + 30 Then
WeekNum = INT(DueDate - Today) /7 //might have to tweak this a bit
Else
// more than a month out
Select Case Month(DueDate)
Case 1 : Bucket = "Jan"
Case 2: Bucket = "Feb"// and so on
End If
Having the 'Bucket' Formula, you can create a pivot table in Crystal with
headings as follows:
Part# Past Due Tue Wed Thu Fri Sat Mon Week-1 Week-2 Week-3 Week-4
Jan Feb
--
Randy Weber
weber.randy@...
(651) 263-1811
http://randallweber.com/
[Non-text portions of this message have been removed]