Hi,
I am trying in effect to perform a distinct sum once per group, I had thought if I could identify the first record in the group then sum this I'd be fine, but its proving harder than expected.
Previously I've used running totals or variables to bypass the problem, however the manager requesting this report is insistent that he drills down from the top down, if that makes sense, so displaying data in the group footer won't cut it with him. Sub reports was another alternative but the performance his on this particular report is pretty bad.
I am using Crystal 2008 on an Oracle 10g database.
The data is for a hire and service company
The data is grouped;
Manufacturer
Product
Machine Serial Number
Call Number
With in a Manufacturer there are several product ranges, within a product range are the serial numbers for the machines and against a machine I have every call number against a machine of which there could be 10 or 20.
I have the monthly income per machine listed on one table, then when I join that to the call table I get it listed once per call. I only want to sum the income once, but need to list every call in full to sum the labour and product costs. I then do a comparison between the income and the expenditure at each group level.
Sorry for the long explanation, was trying to get everything in there!
Running totals are the obvious answer I know, but are no good to me here due to the insistence everything is displayed in the group header. A group number function that reset every group and could be used in a summary would be ideal, but I am having a total mental block on how to achieve it!!!
Cheers
Marc
I am trying in effect to perform a distinct sum once per group, I had thought if I could identify the first record in the group then sum this I'd be fine, but its proving harder than expected.
Previously I've used running totals or variables to bypass the problem, however the manager requesting this report is insistent that he drills down from the top down, if that makes sense, so displaying data in the group footer won't cut it with him. Sub reports was another alternative but the performance his on this particular report is pretty bad.
I am using Crystal 2008 on an Oracle 10g database.
The data is for a hire and service company
The data is grouped;
Manufacturer
Product
Machine Serial Number
Call Number
With in a Manufacturer there are several product ranges, within a product range are the serial numbers for the machines and against a machine I have every call number against a machine of which there could be 10 or 20.
I have the monthly income per machine listed on one table, then when I join that to the call table I get it listed once per call. I only want to sum the income once, but need to list every call in full to sum the labour and product costs. I then do a comparison between the income and the expenditure at each group level.
Sorry for the long explanation, was trying to get everything in there!
Running totals are the obvious answer I know, but are no good to me here due to the insistence everything is displayed in the group header. A group number function that reset every group and could be used in a summary would be ideal, but I am having a total mental block on how to achieve it!!!
Cheers
Marc