How to avoid including duplicate records in group summaries in Crystal Reports -


i have report groups record company, customer, invoice, date... have duplicated records. want sum total , not include duplicate records. use running total, , ongroup change invoice. works grand total in report footer still want subtotal in case 15006.26 + 39772.26 + 21140.00 + 4571.92.

i tried use whileprintingrecords , declare currencyvar=0 , recalculate total this

whileprintingrecords; currencyvar amt; if previous ({brptarageupssequence;1.invoice})<>{brptarageupssequence;1.invoice}         currencyvar amt:= amt + {brptarageupssequence;1.ageamount} else if onfirstrecord      currencyvar amt:= {brptarageupssequence;1.ageamount} 

but o , not know problementer image description here

you need 2 running totals: 1 grand total , 1 group level. since sounds you've got 1 grand totals working, need duplicate 1 , make 1 small change work @ group level.

in new running total settings, change "reset" field "none" "on change of group" , select group level want work at. then, place new rt in appropriate group footer section of report.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -