Crystal Reports XI Crosstab summary - crystal-reports

I have a crosstab report that provides a summarized distinct count of students and a sum of all credits per term. I need a summary that divides the summarized credits by the summarized students. Is there a way to do this?

It's hard to solve this with the given information (i.e. not knowing exactly how the data is coming into the report) If the count of students is already passed into the report, this may solve your problem:
In your CrossTab Expert, create a new formula #AvgCredits, which is Credits/Students
In your CrossTab Expert, place the following fields in the "Summarized Fields" section:
Count of Students
Sum of Credits
Weighted avg of #AvgCredits with StudentsCount (you may need to add the Formula to the Summarized Fields section first, then click "Change Summary" to change it to a weighted average.)

Related

Crystal Report - This field can't be summarized

I have a formula ABC
sum({Table1.col1},{Table2.FieldName})
My report is grouped by Table2.FieldName.
Then then want to add the value of ABC to another column's value.
My formula :
sum({#ABC},{Table2.Col1})
Here, I am getting this error that #ABC cant be summarized.
Is their any workaround to add these fields.
Crystal can't total other totals.
If you explain the situation in more details, there may be another way to accumulate the desired total.
Alternatively, Ken Hamady maintains a list of 3rd-party Crystal Reports UFLs (User Function Libraries) here. At least one of them allows you to do totals of totals by providing functions that allow Crystal formulas to accumulate and retrieve total values in memory.

How to create the grant total for AGG variable the table tableau dashboard

NUMBER OF OPPORTUNITY= count([opportunity id])
how to sum up the NO.of opportunity for each category
for example:
health grant total:8
commercial lines grant total: 9
Thanks a lot
To display subtotals, choose Show all subtotals from the Analysis menu under Totals.
To calculate subtotals, you could use either a fixed or exclude LOD calculation. LOD calcs are described in the help and worth the time to understand.
Also, be sure you understand the difference between Count and Count Distinct. All count([xxx]) does is return the number of data rows that have a non-null value for the [xxx] field. If [xxx] is never null, that is the same as SUM([Number of Records])
I am trying to explain with example as:
Your data is as per above example and you want totals of all region according to category wise.
Here are the steps to execute.
1.Go to analysis > totals > Total using subtotals and you will get results as
2.To get exact sum follow the steps as per below :
Hope this will help.

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)

Crystal Reports: Is it possible to sum for more than one column?

I work on an accounting project in .NET.
I want to sum all transaction and its opening balances.
I use summary but it Allows only one column..
You can summarize within formulas, so long as the formula field is present in the report footer. When using Sum() CR knows to evaluate the expression for all records returned.
So you would create a formula for the report footer, and the formula code would be something like:
Sum({#TransactionAmt1}) + Sum({Transactions.Amount}) + Sum({#AnotherFormula});

Conditional group SUM in Crystal Reports

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.