Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: surpressing lines from report. Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
Tomsss
Newbie
Newbie


Joined: 02 Jul 2009
Location: Canada
Online Status: Offline
Posts: 20
Quote Tomsss Replybullet Posted: 09 Mar 2010 at 1:16pm

Field A is the invoice or credit amount. Field B is the payment of said invoice. Field C is A-B. Field C is the running total field.

 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Mar 2010 at 2:13pm

Try this

Group on On InvoiceID
Create RT1 as "StartAmount":
Field to Summarize=Field A (inoice start amount)
Type of Summary=SUM
Evaluate=On CHange of Group (group1-invoiceID)
Reset=On CHange of Group (group1 invoiceGRoup)
 
Create a formula field 'PosNeg':
if invoicetype in ['credit', 'return'] then table.fieldBamount *-1 else table.fieldBamount
 
Create another RT as 'Rows'
Field To SUmamrize=@PosNeg (formula above)
Type of SUmmary=SUM
Evaluate=For each record
Reset=On CHange of group 1
 
Create a final Formual field as RowTotals (adding your 2 RTs togther)
#StartAmount + #Rows
 
Place on Details to see each row amount or in group footer to see the final for the invoice.
Can suppress details and still get total for group footer
 
IP IP Logged
<< Prev  Page  of 2
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