INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Wierd Week

 Forum Search FAQs Links MVPs

## Wierd Week

(OP)
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
www.hammerman.com

### RE: Wierd Week

Try this method, but make sure you read the warning at the bottom:

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks

### RE: Wierd Week

(OP)
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
www.hammerman.com

### RE: Wierd Week

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})

### RE: Wierd Week

(OP)
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
www.hammerman.com

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

#### Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!