Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Group record filter by row then summarize Post Reply Post New Topic
Author Message
NENminer
Newbie
Newbie
Avatar

Joined: 02 Jun 2014
Location: United States
Online Status: Offline
Posts: 2
Quote NENminer Replybullet Topic: Group record filter by row then summarize
     Posted: 10 Jun 2014 at 9:56am
This is going to be a hard one to explain. I'm tracking machines and when the were serviced. based off of that service, they get a percentage, managers then add the current average with the last average to decide if action is needed.

I need to show the last 6 services of each machine and then average each service with the last one.

Example:

Machine 1
5/5/14     $96.00 47%
5/12/14     $98.46 88%
5/20/14     $109.00 133%
5/29/14     $95.00 83%
Machine 2
...
...
...

so the average of 83% and 133%
then 133% and 88%
then 88% and 47%
etc..

I tried lots of options with no success
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 17 Jun 2014 at 10:01am
why not use Previous() something like;

if previous({table.machineName}) = {table.machineName} then
({table.percentage} + previous({table.percentage})/2


IP IP Logged
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