Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Sum on sub report totaled on main report Post Reply Post New Topic
Author Message
riker
Newbie
Newbie
Avatar

Joined: 07 Dec 2010
Online Status: Offline
Posts: 16
Quote riker Replybullet Topic: Sum on sub report totaled on main report
    Posted: 28 Apr 2011 at 7:43am
The report is to show total scrap and rework reported from the production floor for a given time frame. The main report calculates the reworks reported and the sub report calculates the scrap reported. The data is grouped by day and totaled for the week or month depending on selected dates. I've got a total for each day in the sub report and want a total for all days to show in the main report footer. I'm sure I need to have a shared variable but can't figure out how it needs to be setup.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 29 Apr 2011 at 2:06am
I am guessing that if it totalled by week and month, that there are groups for them.
 
Reset the shared variables in the appropriate headers and increment them after the subreport...in this case the daily group footer should work. Report the values in the appropriate group footers (week /month).  The shared variable could be just the subreport totals which you will add to a SUM() in each of the group footers or it could be the Total of both the main and the subreport.
 
It's all up to you how/what you want to display.
 
HTH
IP IP Logged
riker
Newbie
Newbie
Avatar

Joined: 07 Dec 2010
Online Status: Offline
Posts: 16
Quote riker Replybullet Posted: 17 May 2011 at 4:45am
Thanks for the reply lockwelle. I didn't get it to work the way you described, mainly because they didn't give me time to finish. I ended up breaking it into 2 reports that they run separately.
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.016 seconds.