Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wierd Week

Status
Not open for further replies.

HowardHammerman

Instructor
Oct 11, 2001
640
0
0
US
I need to group payroll data by week. The problem is, my client's week starts on a Monday and ends on a Sunday.
How do I tell the group expert to sort on that kind of week?

I know that there is a place to enter a formula, I just can't figure it out.

Thanks,

Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
 
Thanks Ken,

I should have looked at your site in the first place.

Howard

Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
 
I had to do this a while ago with a week that began on a Tuesday.

I created a formula {@XDATE} with a hard-coded date that was a Tuesday.

Then my formula [@WKGROUP} is DATEDIFF('w',{@XDATE},{table.date})
 
Interesting,

Charliy's formula yields an integter (week number) while Ken's yields a date, the first day of the week.
Both are very useful.

thanks,

Howard

Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top