I'm a new user of Crystal Reports. I'm catching on fairly quick but I need help with this one.
I have two SQL tables, Invoice and AddedCost. The Invoice table has one record for each invoice. The AddedCost tables can have multiple records for each invoice.
I'm creating a report that lists various invoice data like invoice total, total cost and profit margin. I want to include as a field in the detail section the total of all the AddedCost records for an invoice.
If I create a group for invoice it totals the AddedCost records just fine. But it also multiplies the total for the other fields by the number of AddedCost records for that invoice. For example, an invoice with an invoice total of $100, total cost of $80 and two AddedCost records for $18 and $25 would show totals of: Invoice Total $200, Total Cost $160 and Added Cost of $43. The invoice would also show up twice in the detail section, once for each record in AddedCost.
I'm sure there is a simple way to total up the AddedCost records and put that in the detail section but I'm stumped.