Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grouping and totaling issues

Status
Not open for further replies.

staceyn

Technical User
Nov 19, 2004
107
US
Hello,
I am using version 10 Crystal Pro with an informix database.
I have a report that has 5 different groups for subtotaling purposes. If I put the information in the detail section, of course it is replicating each item number. As an example: Rcv
item mfg item style retail cost units
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 55
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 10
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 5
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 12
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 1
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 4

I need the data to display as follows:
rvd
item mfg item style retail cost units
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 87

If I move the fields to the group header then the sorting within the 5 groups is incorrect. If I choose to suppress if duplicated I get something like this:

Rcv
item mfg item style retail cost units
47095 D13797 Jessie Mule_ltr-Black 49.99 125.00 55
10
5
12
1
4

Any suggestions on how to correct this problem?
Thanks in advance for any suggestions.

 
You should have an inner group on whatever is the unique field in these records, maybe {table.itemno}. Then you would insert a summary on units, and the then drag the detail fields into the group footer and suppress the detail section.

-LB
 
It looks like you're grouped on the Item #.
So far so good.
Create a subtotal of the units field to add them up and put this in the Item # group footer.
Copy (or move) the other fields (the ones that are always the same) to the Item # group footer.
Hide (or suppress) the Details section.



Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top