I have a report that calculates a summary field by group location which I am calling a sub total. There is another summary field by company in group company section. We allocate corporate overhead costs based on volume of revenue. I need to take the location total revenue and divide by the overall company revenue to get the % of volume. My problem is that I cannot get the company total into the location group row without effecting the numbers. I have tried to create a running total field to get the total. I have tried referring to the main report to get the company total and I have tried summarizing the location totals but I cannot summarize a summarized field. Any suggestions would be really helpful, thank you!
Company Locations---------- Total Revenue-------- % of Volume
California------------------------ 500,000----------------- 500,000/950,000 ?
New York ---------------------- 300,000
Ohio ---------------------------- 150,000
Company Total: -------------- 950,000
This looks like the same thing I am trying to do but I don't understand the answer yet..
http://www.experts-exchange.com/questions/27749404/Crystal-Reports-XI-fixed-value-for-denominator.html
your best option is creating a subreport on the report header to calculate only your total revenue and then using it on your main report through a shared variable.
if sum({totalRevenue},{location}) > 0 then
sum({totalRevenue},{location})
/
sum({totalRevenue})
Related
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+
I have a Crystal Report that shows different groups(or departments) utilizing the groups in Crystal Reports. I then used some formulas to calculate Attached and Unattached assets in each group. Now I wish to show a total for the column of Attached and Unattached, what is the best and simplest way to do this?
Update
Okay I have been able to use a running total on #countattached that gets me close to what I need, the only problem is that it wants to add the last group total to the next group. The report is set up so the Employee (I.E. Jane Doe) and under that Employees name are Groups that, that Employee adds reports too such as Parks, Water, Streets , Etc. those Groups have a field across from them for Attached and Unattached with a total for both together at the end for each Group. I need a total for each Group under the column of attached and Unattached..
CrystalReport
Okay I finally figured it out if you have a series of columns that have sums for individual groups(parks,streets,water) under employees all you need to do to calculate the totals of those groups is right take the formula that has the sum for those groups, , such as (#countAttached). Then do a Running Total in the Running total dialog box, you can then set it to reset after each individual that those groups apply to then you have a those totals for that column. You just repeat this process for any other Columns you have.
I'm using CR12 pulling from a database and trying to create a summary that will total values in a cross tab. Here is my scenario:
Report detail shows equipment used
Detail is grouped by Room and then Date/Time of session
Summary section totals up all equipment with discounts, tax, etc.,(via formulas) ending in Grand Total
Grand total is then divided by a distinct count of billing codes to calculate avg. $ amount per billing code that is due per room/date-time
This was placed in a cross tab to show Billing Code and $ Amount Due per billing code. Now I need either another cross tab or summary at the bottom of the report to show the total amount due per billing code.
Example:
Room/Date----Billing Code----Amount Per Code
101 3/2/16------ABC123----------------$50.00
101 3/2/16------DEF456----------------$50.00
102 3/2/16------ABC123----------------$25.00
TOTAL
ABC123: $75.00
DEF456: $50.00
Here is a screenshot example of what I have so far:
Report Example
Any insight provided is greatly appreciated.
Since you took a cross tab to show the individual summaries (though it can be done without a cross tab and it is more easy to show final totals in footer as well)
In report footer as well take another cross tab to show summary just take rows as billing codes and sum the amount.. which will do the task
I need a way to work around Crystal's inability to summarize a summary.
Data Sample:
Shipment Number and Sum of $ Paid:
shipment #1 $1089.34; shipment#2 $985.22; and shipment #3 $1002.87
I have grouped my data by Shipment Number and summed the $ Paid for each shipment. Different deliveries were on each shipment so I had to sum the $ Paid to get the total amount paid on each shipment. Out of this list of sums, I need to find the median. I know this would be easy to do if I exported to excel, but I need to have it built into the Crystal Report.
I know writing a simple formula such as median(sum($paid)) does not work. The error message "this field cannot be summarized" confirms that Crystal does not have the ability to summarize a summary.
Please help! Any work-arounds are greatly appreciated.
You can achive this by using Running total.
Take running total for paid and another running total for count then use both in a formula to find the median.
I'm trying to get the total count of employee ids so that I can use it as the basis for a percentage in my report. I'd like my report to look like this:
Types With Email
Customer 20% 15%
Vendor 40% 80%
Employees 40% 75%
Total People: 100
In my view I have the employee id, type and email address. I can get the count and the first percentage (percentage of customers, vendors and employees). What I'm have trouble with is the percentage of customers or vendors with email address. I've tried using formula fields and summaries, but haven't gotten too far with them. Can anyone point me in a direction?
Create a formula to calculate email-address presence:
//{#has_email}
If Isnull({employee.email}) Then
0
Else
1
It doesn't need to be added to the canvas.
Create a formula to calculate the % total:
//{#email %}
// summarize number of email address for a given type
Local Numbervar Total := Sum({#has_email}, {employee.type});
If Total <> 0 Then
Total / Count({employee.id}, {employee.type}) * 100
Add to group header or footer and format with %.