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.
Related
Ok, simple question to anyone who has experience with crystal (which I do not) ,
but I have a report that is pulling in open orders, items ordered, qty ordered, and qty on hand. I am grouping by order # and would like to filter out all the orders that have any items with insufficient qty on hand for any item on the order to ship. I tried a simple formula of {qty_on_ord} < {qty_on_hand} then {Ord_no}, and inserted this into the group header, but it didn't work. My end result basically wanted is: if an item has insufficient qty, then don't display the order at all, and could also go vice-versa and show the orders that are short, with a simple change of <>. Im sure this is simple, but I have no experience in crystal reports and have spent more time than I wanted searching the web.
Any help is greatly appreciated.
Insert your formula at the Detail(Record) Level.
Go To Report > Selection Formulas > Record
There Enter your formula by selecting Fields from the "Report Fields"
This way you can just select the order Numbers you want and wont have to worry about the sum or totals at the bottom.
I'm stumped on the following as I'm trying to display an accurate weighted percentage in group footer using the following formula which seems to work for the grand total only:
((Sum(ProductionCost)-Sum(ActualCost)) / Sum(ProductionCost)) * 100
Is there a way on each group footer section to indicate this formula to work within current group at least so I don't have to tediously do different formulas for every possible group?
The second parameter to the Sum() function controls the group level the sum works over. See the documentation for more info.
You can also create a straight summary instead of a formula. Go to "Insert" → "Summary" → select the field you want to summarize and select the Sum function → at the bottom of the window you'll see options for which group level to place the summary and also a check box that will display it as a percentage of another summary.
Is there a way to limit the number of rows fetched from a table when creating a report with the Report Wizard?
Say I have a table with a million records. I use the report wizard to select this table and some fields. Before I can get to the step where I can use the select expert; Crystal Reports fetches everything record to render on the report. This can take 5 - 10 minutes of just waiting.
Is there some setting to limit how many records can be fetched during design time? Or is there some other approach?
Use a Record Selection Formula
Here is some reference but you may want to google "Crystal Reports Record Selection Formula"
http://www.tek-tips.com/faqs.cfm?fid=3826
A simple setting can limit the records!! Here it is, if you're using .Net 1.1 (similar set of options in higher frameworks too!).
Solution 1: Right click on the report layout > Reports > Top N/Sort Group Expert > Choose Top N in the Dropdown that asks for the type of filtering/ sorting you wish to do > Set the Value of top N (100 for ex.) > Uncheck the option that includes other records. You report will be filtered for only the top N records from the Dataset.
Solution 2: Using the Record selection formula where you limit the No. of records on a particular Report/Sub report. Right click on the report layout > Reports > Record Selection Formula > Enter the formula as "RecordNumber <= N". That's it. The number of records fetched from the Datasource will be only upto N.
Cheers!
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.
I've been doing some accounting reports and have been summing up my different currencies using a formula
IE
CanadianCommissionFormula
if {myData;1.CurrencyType} = "CDN" then
{myData;1.Commission}
else
0
CanadianCommissionSum
SUM({#CanadianCommissionFormula})
Then I'd just display the CanadianCommissionSum at the bottom of the report and things were great.
I've just come across the requirement to do this, but grouped by Sales Rep. I tried using my previous formula, but this sums for the whole report. Is there an easy way to sum like this, based on which group it's in?
You probably figured this out a year ago, but just in case, try this:
Change your CanadianCommissionSum formula to
SUM({#CanadianCommissionFormula},{SalesRep})
Put this formula in your SalesRep's Group Footer section.
This should now display properly.
Create a group based on the sales rep in the Crystal Report, and place the:
SUM({#CanadianCommissionFormula})
...in the footer of the group.
I would assume that rexem's suggestion should work but since you said it gives you a total all of the sales reps you could change the sum to running total. Before doing this I'd double check that you have your field in the correct footer section though.
To do the running total, group by Sales Rep, and then set up your running total to evaluate on every record and reset on the change of the group. Then you can put this running total in the group footer and it will show subtotals.
Hope this helps.