Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Need Urgent help with running total problem Post Reply Post New Topic
Author Message
robert
Newbie
Newbie
Avatar

Joined: 18 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote robert Replybullet Topic: Need Urgent help with running total problem
     Posted: 18 Nov 2009 at 8:18am
hi everyone
 
iam having a brain draining problem, i am doing a report for our purchasing dept called "supplier delivery performance" what this report does is give a list of supplier accounts, lines due from that supplier, lines recived from that supplier, qty orderd from supplier and qty recived so far from supplier. its the quantity received so far that i am having a problem with, this report has a drill down so i can see which products exactly are on order, and basically in the drill down i have a summary which adds up how many products have arrived but only if the date received is equal to or less than the date due. my problem is then how to get this onto the main report, i thought i could use the maximum function and try to add a summary of the maximum of that erunning total, but apparently you cant sum a running total ??!!
so in a nutshell, how can i get the maximum value in my running total (in the drill down) onto the main report?????
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 18 Nov 2009 at 8:29am
Assuming in the main report you mean just not suppressed with drill down and you are not using sub-reports you create a new Running Total that is almost the exact same as your other RT, just reset=never (not at the group level the way your other RT should be).
IP IP Logged
robert
Newbie
Newbie
Avatar

Joined: 18 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote robert Replybullet Posted: 20 Nov 2009 at 1:07am
i think i alread tried that whilst trying hundreds of other things, and it didnt work, any other ideas?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Nov 2009 at 6:51am
I still think the RT will work but it depends on the data and the report design.
Your drill down is just a base suppression not a subreport correct?
 
Please post a little sample row level data and then how you need that calculated for the report totals.
also a reminder that RTs cannot be placed above the last field that is needed to make the total calculation so this report total has to be on the report footer to see the number. If you tried placing it on a group footer it would only show you values up to that part of the report.
IP IP Logged
robert
Newbie
Newbie
Avatar

Joined: 18 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote robert Replybullet Posted: 20 Nov 2009 at 7:15am
hhmm, yes it is just the details section suppressed, so when i click on the group header it drills down into the details.
 
wht do u mean by row level? i take it you mean a sample row from the supresed details section?
 
wells its liek this supplier code - lines due- lines recived on time - % lines recd on time - qty ordered - qty received on time - % qty recd on time
 
its the qty recd on time im having trouble with
 
iv tried a formula somthing like if date_recd <= date_due then sum qty_recd.
 
this is giving me a real headache hahahaha.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Nov 2009 at 7:26am

Assuming you do not have duplicate rows of data that you need to account for here and you really just want a SUM of the QuantityReceived if the recieved date <=datedue.

make a formula field to define this data then you can SUM the formula field at any group level you want.
If table.received date <= table.datedue then table.QuantityRecieved else 0
 


Edited by DBlank - 20 Nov 2009 at 7:26am
IP IP Logged
robert
Newbie
Newbie
Avatar

Joined: 18 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote robert Replybullet Posted: 20 Nov 2009 at 7:33am
!!!!!!!!!!!!!!!!!! this worked!!!!! you are a genius ma freind!!! oh my god oh my god oh my god, thank you so much!!  THIS GUY IS A GENIUS EVERYBODY. do you do this for a job or somthing? and what the hell are you doing up so early?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Nov 2009 at 7:57am
Very kind of you to say but just learned a few tricks is all. Once you learn them it makes things a lot easier in Crystal.
Mid morning for me here so I just settled in.
Glad you got it to work Clap
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