Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Several Questions Post Reply Post New Topic
Author Message
JamesS
Newbie
Newbie
Avatar

Joined: 16 Jul 2009
Location: United States
Online Status: Offline
Posts: 16
Quote JamesS Replybullet Topic: Several Questions
    Posted: 28 Dec 2009 at 9:30am
A have a report where I need to group the data by 28 day periods.

So basically if my data started from 1/1/1900 and ended 3/29/1900

The first group would be 1/1-1/28, second 1/29-2/25, third 2/26-3/25, 4th 3/26-3/29

Also once I have it grouping correctly

Would this work correctly?

Count(Group) to give me the number of groups for instance in the above example, 4. So that if I have an average field calculated by the sum of a value in the individiual groupings and divide that by the number of groups to make the average

or would it be better off using something like

RoundUP(((DistinctCount(Date(TimeStamp))))/28)

Premise of the formula. Distinct Count of the number of days in the Time stamp field for the data range, divide that by 28 to get the number of groups. RoundUp to next whole number to account for like in the example from earlier where the last group isn't a full 28 day section. So in the above example if I used this formula without the Roundup I would come up with 3.11 instead of 4 groups like there is. So the round up function fixes that.

IP IP Logged
JamesS
Newbie
Newbie
Avatar

Joined: 16 Jul 2009
Location: United States
Online Status: Offline
Posts: 16
Quote JamesS Replybullet Posted: 31 Dec 2009 at 11:07am
no one has any help?
IP IP Logged
JamesS
Newbie
Newbie
Avatar

Joined: 16 Jul 2009
Location: United States
Online Status: Offline
Posts: 16
Quote JamesS Replybullet Posted: 07 Jan 2010 at 7:52am
bump.

No one even has a that's not possible?
IP IP Logged
JamesS
Newbie
Newbie
Avatar

Joined: 16 Jul 2009
Location: United States
Online Status: Offline
Posts: 16
Quote JamesS Replybullet Posted: 18 Jan 2010 at 11:56am
?????????????
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.012 seconds.