Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...An excellent site which has quite possibly prevented me from having a mental/nervous breakdown..."

Geography

Where in the world do Tek-Tips members come from?

crosstab report to calculate average job time by complexity

Rockytop62 (TechnicalUser)
30 Jun 12 17:21
I'm using CR 11.0
I have record data fields as follows:

JobRefNo
JobComplexity
Department
JobHours

The JobComplexity field is a dropdown with 5 options
My crosstab report has the 5 JobComplexity options as Columns. The Departments are the rows.
I need to calculate JobHours/Distinctcount(JobComplexity) per department.. So if Department A did 5 jobs at "simple" level of JobComplexity and consumed a total of 25 hours for those 5 jobs, the cell entry would be 5 in the "Simple" column for Department A.

Any one have an idea of how to create a cell formula capable of this? Thanks!
Madawc (Programmer)
2 Jul 12 6:22
Sorry, what's the problem? If your crosstab already shows the number of jobs, use the Crosstab Expert to also show the sum of hours.

yinyang Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP yinyang

Rockytop62 (TechnicalUser)
2 Jul 12 8:57
I have a crosstab report that shows the SUM of the hours... and I have a crosstab reports that shows the job count at each level of complexity.. I'm trying to figure out how to set up a cell formula that divides hours by job count... Columns are Job Complexity levels.. Rows are departments.. cells = Total hours / job count.
lbass (TechnicalUser)
2 Jul 12 21:10
What results do you get if you use "average" as the summary on the Hours field?

-LB
Madawc (Programmer)
3 Jul 12 10:08

Quote:

I'm trying to figure out how to set up a cell formula that divides hours by job count

I don't think a crosstab can do that. It sums up values found at detail-line level. You'd need to define those totals yourself, separately form the crosstab.

yinyang Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP yinyang

Rockytop62 (TechnicalUser)
11 Jul 12 20:29
Finally figured it out... Requires the use of an Embedded Summary Calculation in the CrossTab report. For any others looking for a solution to this problem, you must have CR 2008 or later.. From that point, my solution turned out to be rather straight forward.. In my case: Create the Crosstab report with both numbers - SUM(Hours) and COUNT(Jobs).. Then create an embedded summary with GRIDVALUEAT(CURRENTROWINDEX,CURRENTCOLUMNINDEX,0)/GRIDVALUEAT(CURRENTROWINDEX,CURRENTCOLUMNINDEX,1) as the third element in the cell.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close