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

Sorting by Day of Week

Status
Not open for further replies.

harrietohs

IS-IT--Management
Apr 26, 2002
99
CA
Crystal 8.5

I use the following formula for a row in a cross tab report:

WeekdayName(DayOfWeek({activity.new_date}))

The report is run with start and end date parameters, with the intent to see which days of the week have the most actvities.

This formula sits within a group that divides the report by the different activity types.

It all works fine, except the report displays with the week day names in alphabetical order. I am trying to figure out how to get them to display in natural date order (i.e. Mon, Tues, Weds, Thurs,....)

Thanks,

Harriet



 
Use the following formula for your rowfield:

dayofweek({activity.new_date})

Then while the formula is highlighted in the crosstab expert, go to Group Options->customize groupname->use a formula for the groupname->x+2 and enter:

weekdayname(dayofweek({activity.new_date}))

-LB
 
Perfect! LB- as always,you are my hero!

Harriet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top