Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Display an inline group total Post Reply Post New Topic
Author Message
bowja
Newbie
Newbie
Avatar

Joined: 07 Dec 2009
Location: Australia
Online Status: Offline
Posts: 31
Quote bowja Replybullet Topic: Display an inline group total
     Posted: 25 Jul 2013 at 6:45pm
Hello,

I am working on a report which pulls data from essentially 1 table payitem. 
eg:
entry|tsid|username|weekday|hrs|
1|1|bob|mon|3
2|1|bob|tues|4
3|1|bob|wed|3
4|1|bob|thur|4
5|2|dave|mon|2
6|2|dave|wed|5
7|3|jess|tues|7
8|3|jess|wed|4
9|4|jess|frid|4
10|4|jess|saturday|4

What I need is the sum of hrs for each tsid to display NEXT to each entry
eg:
entry|tsid|username|weekday|hrs|totalts
1|1|bob|mon|3|11
2|1|bob|tues|4|11
3|1|bob|wed|3|11
4|1|bob|thur|4|11
5|2|dave|mon|2|7
6|2|dave|wed|5|7
7|3|jess|tues|7|11
8|3|jess|wed|4|11
9|4|jess|frid|4|8
10|4|jess|saturday|4|8

My inital thought was to use a formula field with a while loop however I cannot work out how to write the formula.  The client wants to be able to export to excel and filter to show all entries on a timesheet(tsid) where the total number of hours for the timesheet exceed 38hrs.

Any help with this would be greatly appreciated.
If you think you can or think you can't you are right - Paraphrased quote Henry Ford
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 26 Jul 2013 at 5:57am


Hi,

Create a Group based on TSID, and create a formula in the designer as

sum(Hrs,tsid)

Place the above formula in the Details section and hide Group header and footer sections.

--Praveen G
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
bowja
Newbie
Newbie
Avatar

Joined: 07 Dec 2009
Location: Australia
Online Status: Offline
Posts: 31
Quote bowja Replybullet Posted: 26 Jul 2013 at 3:15pm
Thank you for your reply Praveen.
 
Your solution worked flawlessly.
 
Big%20smile
If you think you can or think you can't you are right - Paraphrased quote Henry Ford
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