crystal report total - crystal-reports

suppose if i have many locations like L!,L2,L3 etc
each location hasAmount column with many records
how
can i totl the amount of each location in Crystal report

You need to create a Group for the Location, and then add a total field for SUM of Amount.
If you need me to explan the steps for you, please feel free to ask.
On the menu click Report and then
Group Expert.
A new window will pop up called
Group Expert with 2 boxes (Available Fields and Group By) and
buttons to move fields from left to
right.
Move the Location Field to the Group
By box and click OK.
Now you report should show a Group
Header 1 containing a field *Group1 Name* and Group Footer 1 which should be blank.
Now on the menu click Insert and
Summary. You should see a new window called Insert Summary.
In the Choose the field to
Summarize, change the field to the required Amount field to be summed.
Change the Calculate this summary
from Maximum to to Sum.
Change the Summary Location from
Grand Total(Report Footer) to Group #1 and click OK.
That should be about it. Now you can play around with the formatting as required.

Related

How to filter records in a single section of Crystal Reports

I have my base record set filtered with a parameter. However, this leaves me with 6 records and I need to filter down to one particular record in each of my sections. If none of the records meet my criteria i cannot suppress the section, it will need to just stay there and blank.
Essentially, I need a method to filter down records that hit one of my sections but not affect the report as a whole.
A few notes:
I cannot use a subreport for this. I need to duplicate this effort over a couple of sections and if I add any more sub reports it just crashes crystal reports (I have a lot of data & a ticket with SAP)
Using a suppression formula hasn't worked yet because I need the section to exist, if it has a null value
Applying no filter doesn't help me because it will duplicate my section 6 times
2 options.
a)
Right Click on white space and choose Insert Group
Choose your field and select specified order or use another record that can filter your data
On the Specified Order Tab click New
Select equal to on the combo box and specified what record you need to be shown
or
b)
Right click on the record
Next to the suppress check box, click on x-2
Here you can create a formula to suppress the records that you don't need.

I want to add a group summary data into the formula field in crystal report

I created a account wise group and i want to find the maximum date accroding to the group so i created a summary field. I want to add the summary field in the formula.how can i do that help me.
try this
go to formula workshop and double click Maximum summary field which is most effective way.
go to formula workshop and write as below
Maximum ({Attendance.Date})
The syntax changes if its a group footer I have given it for report footer

Modifying a report to remove a record limit?

I'm trying to modify a report that shows the Top 10 Customers by Sales. Currently, the report shows the top 10 customers, and stops.
I'm trying to remove the limit of 10, so I can see all customers sales data. I can't find where the report is setting this limit. I've looked through the formula editor, and can't find any relevant formulas to this limit.
Also there are no suppression formulas.
Any ideas?
Found the answer.
Under the Report > Group Sort Expert menu, I was able to select between:
No Sort
All
Top N
Bottom N
Top Percentage
Bottom Percentage
for the group sort. I selected All, and now all my records are showing.

strange crystal report summation issue for columns

I am trying to sum all the column value and want to display a summary. I am choosing Insert -> Summary -> Column name and Sum.. But rather then showing sum it is counting the rows and displaying the rows. Kindly please suggest some solution. I am available here if some one need for more info to help please comment. (Sap Scn Crystal Report)
Are you sure you are selecting the sum option from the summary?, because normally this should have returned the sum of the values. As an alternative you can use a Running Total Field.
From the Field Explorer window, right click on the "Running Total Fields" and select "New".
In the window that will appear, on the left side you will see the available tables and fields. From there select the field that you want to sum up and press the top ">" button.
As a type of summary select "sum", type a name for the "Running Total Name:" and press OK.
Drag and drop the new Running Total Field on a section of your report.

How to calculate sum of a formula field in crystal Reports?

In some inherited code, I see group headers/footers have items like 'Sum of #numcount' . I cannot get the sum of a formula field. Any thoughts?
The only reason that I know of why a formula wouldn't be available to summarize on is if it didn't reference any database fields or whose value wasn't dynamic throughout sections of the report. For example, if you have a formula that returns a constant it won't be available. Or if it only references a field that is set throughout the report and returns a value based on that field, like "if {parameter}=1 then 1" would not be available either.
In general, the formula's value should not be static through the sections of the report you're summarizing over (Though the way Crystal determines this is beyond me and this doesn't seem to be a hard and fast rule)
EDIT: One other reason why a formula wouldn't be available is if you're already using a summary function in that formula. Only one level of summaries at a time!
(Assuming you are looking at the reports in the Crystal Report Designer...)
Your menu options might be a little different depending on the version of Crystal Reports you're using, but you can either:
Make a summary field: Right-click on the desired formula field in your detail section and choose "Insert Summary". Choose "sum" from the drop-down box and verify that the correct account grouping is selected, then click OK. You will then have a simple sum field in your group footer section.
Make a running total field: Click on the "Insert" menu and choose "Running Total Field..."*** Click on the New button and give your new running total field a name. Choose your formula field under "Field to summarize" and choose "sum" under "Type of Summary". Here you can also change when the total is evaluated and reset, leave these at their default if you're wanting a sum on each record. You can also use a formula to determine when a certain field should be counted in the total. (Evaluate: Use Formula)
You Can simply Right Click Formula Fields- > new
Give it a name like TotalCount then Right this code:
if(isnull(sum(count({YOURCOLUMN})))) then
0
else
(sum(count({YOURCOLUMN})))
and Save then Drag and drop TotalCount this field in header/footer.
After you open the "count" bracket you can drop your column there from the above section.See the example in the Picture
You can try like this:
Sum({Tablename.Columnname})
It will work without creating a summarize field in formulae.