Crystal Report 2008 - How to Sum a Value in Header section? - crystal-reports

I have a master-detail tables, I need to sum a value in master table only but the sum appear duplicated by the numbers of rows in the detail table !!!

It looks like you placed the summary/formula field within the Details section.
If the summary field is a group summary, move it to either the Group Header or Group Footer sections. If the summary field is a report summary, move it to either the Report Header or Report Footer sections.

Related

Merge data inside group Crystal Reports

I have a Crystal Report setup in my WPF Application. The report is grouping data based on VENDOR NAME field as shown in attached image. Now what i want is to show data inside a group only once.
I mean as in first group TOYOTA HOUSE the Vendor name is repeating although other column values are different. i want is under this group just show this record once and for other columns ADD/sum their values and show. I know i can do that in SQL query but can i do this in crystal report ?
Instead of showing in the details section add it to the group footer section.
suppress details section
and add totals in group footer

Getting sum of multiple fields in crystal reports

how to calculate {SUM} of multiple columns into a one column in In my Crystal reports.
Total=(VAT+TAX)
ok this how in general it works:
Place your data in detail section and take simmary in report footer, You can take that by right click ojn field and use insert summary option.
Now create a formula #Total
sum(Vat)+sum(tax)+sum(duty) //you can select the summary fields from report fields
Place the formula in report footer

Crystal reports and subreports speed

I created a report in Crystal Report. It has two subreports.
GROUP Customer
GROUP FAMILY
DETAIL ITEM
The detail is for Items. This detail is inside a group. It has totals.
FOOTER A GROUP FAMILY
totals Item detail
FOOTER B GROUP FAMILY
Subreport 1 Totals by adj (it display the detail of a third table and the totals)
FOOTER Customer
Subreport 2.
Totals by item. (it display the details and the totals)
The report is 48298 records.
The tables have indexes.
Why it takes 30 minutes to run the report? Is this time "normal"?
How can I display in a footer the detail of other table?.
Can I set a field in the footer that calls a Store Procedure and returns all values like a detail?
Each of the subreports will be executed for each customer. I am surprised that you are not running out of memory. My guess is that the number of customers / families is relative small (less than 300). The report is slow because it queries the database twice for each customer. Try to prepare the data inside the main report.

how to pass formula which is in group of main report to sub report (crystal report)

This question about crystal report.
I have crystal report, which has a formula in Group Section. I want to show all the generated group names in bottom of the crystal report.
So I have insert subreport to Main report footer. Then created a formula and link it to main report
formula.
But When running, in sub report, only show last generated group name only.
How to print all the generated group names in bottom of the report.
Thank you.
If I understand what you intend to do, you have a few options:
add a Cross-tab to the Report-Footer section - this will summarized the report's data without a second trip to the database
add a sub-report to the Report-Footer section - you will have more control of the formatting, but it will require a second trip to the database
create a formula that executes at print time (WhileReadingRecords) to store the group names in an array (note: arrays hold a maximum of 1000 entries), then create a second formula (also print time), that joins the array, adding it to the Report-Footer section.

Making report footer to appear just below the last page records

I am using Crystal Reports with VS-2005.
I have a report with a report footer section comprising of sum totals of a column. The problem is that in some cases, the records consume the entire page and the report footer alone appears on the next page. It looks awkward. I want the report footer to appear just below the last record row ended.
Is there any trick to make the report footer section fit on the last page itself?
If you aren't using grouping, try this:
Add an additional section below your last detail section.
In Section Expert, mark the detail section Keep Together.
For the suppress formula for the new section, specify Not OnLastRecord.
Move the content from the report footer to the new detail section.
If you are using grouping, do this in the last group footer instead, and in Group Expert, mark the group Keep Group Together.