ConfusedCrystalite
IS-IT--Management
Hello everyone,
I've not used Crystal Reports before but have been asked by a client of ours to modify a report that's called by their line of business software. Through reading the in-line help, trial and error and reverse engineering I've got most of the way there but am stuck on one particular problem. The report in question contains a sub-report which calculates 90% of the data and that data is summarised on the main report. I've created a few simple formula fields on the sub-report which are shared with (and displayed on) the main report. This works well if the report is run for one client and one client only. The problem arises if, via the line of business software, you select multiple clients. In that situation my formula fields don't reset but carry forward.
This might be easier to explain by way of example.
Say I run a report for a client named Barry. Barry spent £1000 with us and breaking that cost down we find he spent £500 on apples and £500 on oranges. Because I've only selected Barry for consideration, all is well. Another customer, Steve, spends £2000. £1000 on apples and £1000 on oranges. If I run a report for both Barry and Steve on Barry's report the correct subtotals will appear (£500 worth of apples and £500 worth of oranges) but on Steve's it will appear as if he spent £1500 on apples and £1500 on oranges because Barry's subtotals carry forward.
If any of that makes sense (a stretch, I know) my question is: is there any way I can ensure the formula fields reset to zero before processing Steve's data?
Any and all advice very gratefully received.
=)
I've not used Crystal Reports before but have been asked by a client of ours to modify a report that's called by their line of business software. Through reading the in-line help, trial and error and reverse engineering I've got most of the way there but am stuck on one particular problem. The report in question contains a sub-report which calculates 90% of the data and that data is summarised on the main report. I've created a few simple formula fields on the sub-report which are shared with (and displayed on) the main report. This works well if the report is run for one client and one client only. The problem arises if, via the line of business software, you select multiple clients. In that situation my formula fields don't reset but carry forward.
This might be easier to explain by way of example.
Say I run a report for a client named Barry. Barry spent £1000 with us and breaking that cost down we find he spent £500 on apples and £500 on oranges. Because I've only selected Barry for consideration, all is well. Another customer, Steve, spends £2000. £1000 on apples and £1000 on oranges. If I run a report for both Barry and Steve on Barry's report the correct subtotals will appear (£500 worth of apples and £500 worth of oranges) but on Steve's it will appear as if he spent £1500 on apples and £1500 on oranges because Barry's subtotals carry forward.
If any of that makes sense (a stretch, I know) my question is: is there any way I can ensure the formula fields reset to zero before processing Steve's data?
Any and all advice very gratefully received.
=)