Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: the formula was summerize all the data Post Reply Post New Topic
Author Message
adekie
Newbie
Newbie
Avatar

Joined: 06 Jul 2009
Location: Indonesia
Online Status: Offline
Posts: 6
Quote adekie Replybullet Topic: the formula was summerize all the data
    Posted: 09 Jul 2009 at 4:00am
hi there,

i got problem with formula, the formula wa summerize all the data that has being select expert,
the data was
total for customer A = 1000
total for customer B = 2000

the report output was
Total for customer A = 3000
Total for customer B = 3000

the formula was
1.  if {CTM_KARTU_PIUTANG_RPT\.TRANSACTION_DATE} > {?From Date} and {CTM_KARTU_PIUTANG_RPT\.TRANSACTION_DATE} < {?To Date}
then {CTM_KARTU_PIUTANG_RPT\.DEBIT_CURR_AMOUNT}
else 0 --> for limit the data
2.  sum(no 1 formula) --> to accumulate the data

how to limited the customer data??
how the formula should be???

thanks,


Edited by adekie - 09 Jul 2009 at 4:58am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Jul 2009 at 6:28am
you need to put a customer field into your formula, it is just in a date range...it is doing what you asked it to.
 
you could create a shared variable to sum the values for each customer, display it at the end of the customer section and reset it to 0 at the beginning of the customer.
 
it's a place to start.  Lots of examples on shared variables in other posts and Help in Crystal is pretty good.
 
HTH
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.