Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Summing a summed formula group field, Post Reply Post New Topic
Author Message
jeffsugar
Newbie
Newbie
Avatar

Joined: 21 Jul 2014
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote jeffsugar Replybullet Topic: Summing a summed formula group field,
    Posted: 28 Jul 2014 at 12:12am
I am creating a timesheet report and have managed to  group by employee and job number then split our the hours value across the days of the week using a formula which sums the decimal hours per day. it looks like this:
 
Employee - T Smith   Week Commencing: xx:xx:xxxx
Job no:                         MON   TUES   WEDS   THURS   FRI
E05515                          2.5      0.0     3.5  
EN5623                          1.5      2.0     0.0
 
And so on.... the calculated hours for each day are on a formula which checks the day of the job records (there can be more than one detail line for a single job) and sums them.
 
My problem is that I need to add up all the values for MON at the bottom in the employee group, but CRYSTAL wont let me sum the summed formula field... I have tried running totals and trying to pull out the details again at employee level - but nothing seems to work... any ideas?
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 28 Jul 2014 at 1:12am
Hi,
 
Could you post your formula for summing hours per day and running total formulas.
Or
Could you try to use Crosstab instead of creating it on Group header level.
 
--Praveen G
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
jeffsugar
Newbie
Newbie
Avatar

Joined: 21 Jul 2014
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote jeffsugar Replybullet Posted: 28 Jul 2014 at 2:30am
Hi Praveen I am using:
 
IF DayOfWeek ({all_job_labour.repair_date}) = 2 then Sum ({@Dec Hours}, {all_job_labour.job_number}) else 0
 
This gives me the total for the day in the job number grouping.
 
IP IP Logged
jeffsugar
Newbie
Newbie
Avatar

Joined: 21 Jul 2014
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote jeffsugar Replybullet Posted: 28 Jul 2014 at 2:34am
I have managed to get further using a variable to store the running total of the hours and then taking the total.  This is working all apart from one day which appears to be giving me double... I think it may be the order in which my formula's are being evaluated.
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.