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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weekly Grouping in Cross-Tab

Status
Not open for further replies.

gtf

Programmer
Oct 1, 2002
16
CA
I am grouping by week in a cross-tab report but I want my week to start on Monday instead of Sunday. How can I override the Sunday default of CR and have the column group starting on Monday?
 
Write the following formula and use that as your cross-tab field:


if DayofWeek ( {your.date} ) = 1
then {your.date} - 6
else {your.date} - DayofWeek ( {your.date} ) + 2 Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
Thanks Ken. It works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top