Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Average By Day of Week Post Reply Post New Topic
Author Message
kitster100
Newbie
Newbie


Joined: 19 Jul 2011
Online Status: Offline
Posts: 18
Quote kitster100 Replybullet Topic: Average By Day of Week
    Posted: 08 Sep 2011 at 5:55am
I am trying to get the average number of cases per weekday (in this case, Monday thru Saturday). I have a date-time field that I can get a count on the total number of cases, and I use a formula called 'weekday name', with the formula:

weekdayname(weekday({table.datetimefield}))

to get the day, then group them by day. However, I can get only a TOTAL number of cases for ALL the Mondays,
Tuesdays, Wednesdays, etc. in the date parameters I have set.

 I saw somewhere else where using a distinctcount function would get me the number of Mondays, Tuesdays, etc. However when I use it in a formula, I get errors.
I am stuck on trying to get the number of Mondays, Tuesdays, Wednesdays, etc. in my date parameters. My plan is to divide the total number of cases for all the Mondays, Tuesdays, etc into the number of Mondays, Tues., etc. in my timeframe.

  Thanks in advance.
  

Edited by kitster100 - 08 Sep 2011 at 6:03am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.