on 05-19-2015 5:25 PM
I'm using Crystal Reports 2008 to put together a report. I've got two views: One, a list of orders, the second, a list of line items.
The orders are grouped by location.
The line items are grouped by order.
Report Header - suppressed
Page Header - suppressed
Group Header #1 - Reports which location we're at. (new page before)
Group Header #2 - Reports which order we're looking at.
Details: Gives the line item information
Group Footer #2 - gives the order summary
Group Footer #1 - gives the summary for that location
The problem comes up with Complete Freight - everything else is working great. Complete Freight is not summing up the freight charges the way I want them to. It is summing the freight once per line item view, not once per order view.
For instance, that there are two orders in the report - each of them has three line items. The first order has Freight charge of $10. The second has a Freight charge of $15. The Complete Freight should be $25 - the sum of the two. Instead, I get a Complete Freight of $75 (3 x $10 + 3 x $15).
Why is this happening and how can I fix it?
Hi Joseph,
Here's what you need to do:
1) Create a new Running Total for 'Complete Freight'
2) Choose 'Freight' as the Field to Summarize > Choose 'Sum' as the summary function
3) Under 'Evaluate' choose 'On Change Of' and select the Order Group
4) Reset should be set to Never.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joseph,
please go thorugh the following article , it will help you in summing up values based on your requirements.
http://stackoverflow.com/questions/1545883/conditional-group-sum-in-crystal-reports
Regards
Ganesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.