Using Crystal 2008 with SQL Server 2008 R2
I’m trying to count records into weekly buckets for the previous 4 weeks. Unfortunatly I only have one test record that falls on a weekend and it is not falling into the correct bucket.
Formula works properly to find Week 3 Start Date
//start date of week three
DateAdd('ww',-1,minimum(LastFullWeek))
Formula works properly to find Week 3 End Date
//End Date of Week Three
DateAdd('ww',-1,maximum(LastFullWeek))
Week 3 formula does not return a 1 for a record date of 10/5/2013
If {Command.CONTACT_DATE} in DateAdd('ww',-1,minimum(LastFullWeek))
to
DateAdd('ww',-1,maximum(LastFullWeek)) then 1 Else 0
Can anyone tell me what I am doing wrong?
Thank you for your time.
I’m trying to count records into weekly buckets for the previous 4 weeks. Unfortunatly I only have one test record that falls on a weekend and it is not falling into the correct bucket.
Formula works properly to find Week 3 Start Date
//start date of week three
DateAdd('ww',-1,minimum(LastFullWeek))
Formula works properly to find Week 3 End Date
//End Date of Week Three
DateAdd('ww',-1,maximum(LastFullWeek))
Week 3 formula does not return a 1 for a record date of 10/5/2013
If {Command.CONTACT_DATE} in DateAdd('ww',-1,minimum(LastFullWeek))
to
DateAdd('ww',-1,maximum(LastFullWeek)) then 1 Else 0
Can anyone tell me what I am doing wrong?
Thank you for your time.