Crystal Reports - Summarize Cross Tab Values - crystal-reports

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

Related

Add a Calculated Row For Custom Subtotaling

I'm trying to perform custom subtotaling on sales data to give a total for US and Non-US sales offices. My worksheet looks like the table labeled "current" and I am trying to make it look like the table labeled "desired result"
When I tried to group the sales centers as US and Non US the pill (dimension) was greyed out. After googling through a bunch of threads I found that grouping was not supported for secondary data sources. Is there anyway to do a manual calculation in the table calculations to add a row or do custom subtotaling?
Add a column for the country (assuming that you have the country in your data)
[see my example I had states and zip codes]
Then go to analysis > totals > check on show grand total and on add all subtotals
Visit Calculations totals - Grand total turn on for more information.

Crystal Report XI: calculate subtotal % of total

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})

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.

Sub Report /Main report cross tab fields difference,

I have a main report with a cross tab that shows Income of regions
Similarly a sub report is called in the main report that shows Expense of the same regions
Now I have to show the Deficit/surplus b/w the income and expense of each region.
How do I go about it? Any suggestions? I am trying shared variable but that just gives me the total difference between the two reports.
----------
Income Expense Surplus/Def
- Region1-- 1000 Region1 -- 500 -- 500
- Region2 -- 2000 Region2-- 2000 -- 0
- Region3-- 3000 Region3 -- 2000 -- 1000
- Total -- 6000 Total --- 4500 - 1500
p.s I can't seem to indent my columns for ease of reading above.
It is difficult to manuplate these kind of calculations in cross tab.. but one way around would be.
Approach 1:
As I see your cross tabs are simple hence instead of sub report use both corss tabs in main report it self.
For difference (Surpless or deficit) use 3rd cross tab and create the same hierarchy as of the first two and write difference formula.
Approach 2:
See the post below where I gave the answer to get the cross tab functionality without using the cross tab. Check the answer part in below link
How to filter information within a Cross Tab in Crystal Reports
Let me know how it goes.

Crystal Reports - Total Count

looking to show an employee total on a report which has the following.
The report shows, by company divisions, count of employees to have had their annual assessment, I also wish to show total employee count per division so we would show
North Division - 50 employees had assessment out of 170 employees
East Division - 30 employees had assessment out of 50 employees
I cant seem to figure how to show the total count by division.
any pointers would be appreciated.
First of all; you need to group your data by Division.
You then need add a running total: Set it to count a a field displayed on each line (such as employee id). Then click in the "Evaluate" section - "Use a formula". Click the X-2 button to open the formula editor.
Your formula will be dependant on your data. You want it to output "True" for employees who have had their assement and false otherwise. [*]
Then in the "Reset" section, click "on change of group" and select your division group.
Now place your running total in the group footer of the division group.
[*] if this does not work, you will need to create a formula that outputs 1 or 0, on every line depending on whether the employee has had an assessment. Then create a sum on this formula to count the employees.
There are multiple methods of achieving what you want. Google "Crystal Reports Conditional Sum" for more answers.