Crystal Report: Merge multiples rows in 1 - crystal-reports

I have data in following format, grouped by plant
Plant1 4500 PCS
Plant2 500 PCS
Plant3 100 PCs
I want it as follows:
Total Production:5100 PCS Plant1:4500 PCS Plant2:500 PCS Plant3:100PCS

You can use a crosstab to achieve this. Group columns by Plant, Sum number of PCS as your summarized field and check the Row Totals on Left option.

Related

Grand total with each summation in crystall report

I have data like this
Type Buy Sell
Car1 23000 15000
Car2 24000
Car3 25000
I used sum(#buy) for total buy field and sum(#sell) for total sell field.
Can I sum all or grand total that like sum(#buy) + sum(#sell) ?
because when I run in VB6 for preview that report, Grand total not show on, please help me master.
For this there are 2 approach.
Via Formula :- add a formula field and in that add give above condition in formula field editor. put this field in your desired location, but ideally put in report footer or group footer(if any).
Use running total or summary total.
Check this links
Crystal Report Sum of a Column data
https://forums.asp.net/t/1971464.aspx?Sum+of+Total+in+Crystal+Report+

Only hide duplicated fields in Crystal Reports

I have a table in a SQL Server 2008 R2 database like this:
Num Total Item Item Value
--------------------------------------
1 5000 Cup 2000
1 5000 Brush 3000
2 2500 Kandy 2500
3 1000 Soap 750
3 1000 Rice 250
As you can see there is a duplication in the Num, Total columns, it must be like
Num Total Item Item Value
----------------------------------------
1 5000 Cup 2000
Brush 3000
2 2500 Kandy 2500
3 1000 Soap 750
Rice 250
I've tried to use SQL Group By clause, but that didn't work. I also tried to suppress when duplicated in Crystal Reports, but it removes the entire row
So any help?
In the Group Expert inside of Crystal Reports, group your report on the Num and Total fields.
I found it,
Removing the duplicated fields by suppressing them when they are equal to it's previous record
Num Field ==> Suppress ==> Add this
{Num} = previous({Num})
Total Field ==> Suppress ==> Add this
{Total} = previous({Total})

Exporting to Excel in SSRS getting error when it crosses 65,000 rows

Exporting to Excel in SSRS getting error when it crosses 65,000 rows
I am using ssrs (BIDS) to create reports, I struck in exporting to excel when it crosses 65,000 rows. how to solve this problem in ssrs reports
Are you exporting as an .xlsx file? I know in pre-2007 Excel (.xls) the maximum row count was about 65,000.
I got the answer and I hope this is the another way to solve the above problem
generate sql table like this
col1 col2 grp
1 2 1
2 3 1
4 5 1
2 4 2
4 5 2
and give group by column as "grp" and make visiblility false for grp textbox in ssrs report. also in page breaks properties check the "between each instance of a group" checkbox. when you exprot to excel the data will come in differnt sheets for diffetent groups.
user this link for query - Increase row count in sql server after some count (say 25,000)
That's an excel 2003 limitation and SSRS does not support excel 2007.
You need to export to csv or add groups on your report (with 65k max rows) so each group will be exported as on sheet on the excel document

Crystal Reports 2 column crosstab

Using crosstab expert in CRpts, populating the columns selection with 2 column names and using preview, report has I cannot tell what is what. Report has helpdesk total by date and out of that total there is a group count for another dept. Report looks great with one column selected. However, once I select a column fr db and select it to the columns with Crosstab expert, the columns in the report preview are displayed but hard to tell what is what since I get No and Yes columns. I also have Keep Groups together, column totals on top, and Row totals on left "checked" out.
I want to be have: grand toatl column(for helpdesk) total for Dist. Classrooms afected totals
Can you help? I am also new to CR and have not been able to make a "hit" researching.
Based on the above, I want a report to look like:
(col 1) (col 2) (col 3
Date Group District Classes Affected
Crosstab expert has: 2 rows, 2 summaries(sum on date and grandtotal on top), 1 col(which works great with only col 2 used as column but not when I include col 3).
District is count of district's in group
Classes Affected is count of groups count.
Is this better?

Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field

So I have a simple crosstab report that calculates number of sales in the columns, and the rows are each office. The last column on the right is a total column, which contains a summary field (via a count of the identity field) that adds up the total number of sales per office.
How can I sort the crosstab data so the office with the most sales is the top row, and the rest in order under it?
Try this: Right-click on the crosstab. Go into the Group Sort Expert menu. There you will see options to display the top N rows, Sort All by the aggregate of a field of your choice, etc.
(I'm using Crystal XI. If your version is different, this may not work exactly)