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

Create a Date Grouping

Status
Not open for further replies.

checkai

Programmer
Jan 17, 2003
1,629
US
I want to group dates by Week, However when I choose this in the Group Expert it starts on a Sunday. Any Idea on how to group it starting with Monday through Sunday?

Thanks,
DLC
 
Crystal regards Sunday as Day Number 1, I assume that's what you're getting. You could write your own Formula Field to add 7 if Day Number = 1 or otherwise use the Day Number. Madawc Williams
East Anglia
Great Britain
 
I have this problem too as my "week" runs thursday- wednesday.

Solution:

Create a formula that "adds" days to your date field so that yourfirstdayofweek data turns into Sunday. In my case I add 3 to turn thursday into monday.

Group on that field by week..

I create a group header outside of the "custom group header" because I get better results..

@groupheader

date(GroupName ({firstdayofweekformula}, "weekly")) -3

The -3 corresponding to the +3 in the firstdayofweekformula...

Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top