Show totals for every instance of a specific field in the Crystal Report

Hi all.

I have a Crystal Report (v. 2011) that displays: customernumber, invoicenumber, invoicedate, itemnumber, productline, sales

At the report footer I have running total for the sales column that I display in the report footer. But now we want to break that total down by productline. So if the report has 3 product lines then show 3 totals and the grand total (which is already there).

Note, I don't know how many productlines will appear on the report, sometimes the report will display 3 productlines, sometimes it may display 5 or 1. It all depends on the parameters (invoice start date and invoice end date).

How can I do this in Crystal Reports? Should I do a subreport just with the product line sales?

Thank you in advance!
printmediaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
You could use a subreport.

Have you tried using a cross tab?
Rows would be the Product Line
Summary would be the totals

There is also a manual method of building arrays of the totals and the product line

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
printmediaAuthor Commented:
I'm leaning towards the subreport. But out of curiousity, how would the array solution work?
0
printmediaAuthor Commented:
I created a subreport. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.