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!

group date by week?

Status
Not open for further replies.

ericb123

MIS
Mar 3, 2008
55
US
CR11, SQL2000

I have a table of data with a date field and a user name, and claim numbers, etc. So I'm grouping first on username, then on date (weekly).

Then I have a summary which is a count of claim numbers per week in the weekly grouping.

Now I'm trying to figure out how to do a weekly summary of the data. I get the total average by doing:

(Count ({table.ClaimNumber}, {table.Username}) / distinctcount({@Date}, {table.Username}))

which gives me the count of claim numbers per user for each day they appeared in a specific date. This works fine, but when I put in into the weekly group heading, it stays the same.

Is there a way to get this to group on the weekly group header? I tried adding a "weekly" to the criteria, but it doesn't like it.

Any help is greatly appreciated, thanks!
 
Use the following to get an average per week:

Count ({table.ClaimNumber}, {@Date},"weekly") / distinctcount({@Date}, {@Date},"weekly")

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top