Solved

Divide cell in crosstab with a total within the crosstab

Posted on 2010-11-08
1
1,033 Views
Last Modified: 2012-05-10
I have attached an image of what I am working on, please refer to the image for the example.

I have a crosstab that is grouped by quarter and employee title. The 3 summary fields are $ of accounts, # of Accounts, and distinct count of employee title. i want to to create a new cell that takes the distinct count of the employees and divides it by the of $ of accounts.

Example from the attached image: The # of PB's for Q12008 is 2 and the total for the PBs' is $16,860 so I would want the new cell to display $8,430.

Also would it be possible to take the $16,860 and divide it by the total for the row ($18,120) to show 93%?

I am using version 2008.

 crosstab
0
Comment
Question by:wilpitz
1 Comment
 
LVL 19

Accepted Solution

by:
GJParker earned 500 total points
ID: 34091985
One way to do this would be to use saherd variables and pass teh values around teh crosstab

To calculate the Average $ of accounts follwo these steps

1. select the $ of accounts summary field -> right mouse click -> format field -> common tab
open the tooltip text conditional formula (x->2) -> add in formula
Shared NumberVar Rev := CurrentFieldValue;

2. Select the # of accounts summary field  and add a tooltip text formula
Shared NumberVar counter := CurrentFieldValue;

3.in the crosstab expert add in the $ of accounts summary a second time at the bottom of the summary list, right mouse click -> format field -> common tab,
open the display string conditional formula (x->2) -> add in formula

Shared NumberVar Rev;
Shared NumberVar Counter;

If Counter <> 0 Then
    Cstr(Rev / Counter, 2, ',')

HTH
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question