Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Question on Running Totals Post Reply Post New Topic
Author Message
achandana01
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Quote achandana01 Replybullet Topic: Question on Running Totals
    Posted: 25 Oct 2012 at 12:33pm

I have following Data

Age     Pat_ID     Balance     Owner
326.00     1001     399.00     5,502
326.00     1001     399.00     5,502
326.00     1001     399.00     5,502
239.00     2002     1,110.005,502
239.00     2022     1,110.005,502
239.00     2002     1,110.005,502
500     3003    2000     5505

I need a Total of 1509 for owner 5502 and age > 4,2000 for ownder 5005 and age > 6.I am using running totals for this

Fields to Summarize --> Balance
Tyoe of Summary -- > Sum
Evaluate --> Use formula owner = 5502 and age > 4
Reset --> Never

However I am not getting the desired Result.Age criteria needs to be there cuz There are some records which has age < 4.Please help.

Thanks,


Edited by achandana01 - 25 Oct 2012 at 1:00pm
chand
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 26 Oct 2012 at 2:48am
group by owner, and reset on that group
IP IP Logged
achandana01
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Quote achandana01 Replybullet Posted: 26 Oct 2012 at 9:01am
Thank you but what about Age field how do I age as a criteria in RT?

Edited by achandana01 - 26 Oct 2012 at 9:02am
chand
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 26 Oct 2012 at 10:00am
you could do this, make a formula to flag age > 4

if age > 4 then
'1'
else
'0'

----
second formula

just have

totext(owner)+totext(@ageformulaabove)

-----

evaluate for the formula to look like this -> @ownerageformula = '55021'
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Oct 2012 at 4:09am
Your RT design looks fine...where did you place the Running Total on the report? RT's must be on or below that last row of data that is included in the evaluation (they dont work in headers).
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.018 seconds.