Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Cross tab question Post Reply Post New Topic
Author Message
mpearce
Newbie
Newbie
Avatar

Joined: 22 Mar 2010
Location: United States
Online Status: Offline
Posts: 4
Quote mpearce Replybullet Topic: Cross tab question
     Posted: 22 Mar 2010 at 5:31am
I work for a company who deals with patient data from hospitals.  I have designed a report that shows different referral types (reasons people were seen at a hospital) for different hospitals in different states. 

There are 3 groups in the report:  one for the states (G1), one for the referral type (G2), and one for the different hospitals in that state (G3).  I was asked to do a few calculations in this report:

-total number of accounts in each facility
-total number of approved accounts in each facility
-total number of returned accounts in each facility

-find the gross conversion rate for each facility
-find the net conversion rate for each facility
for the totals i have used running totals and for the rates i have used formulas that contain the running totals.

my question is how can i  create a cross tab that will display in this format:

-have the 3 groups as the rows
-have the column headings be the above calculation labels -have the intersections be the values of the calculations listed above

is crystal reports capable of something like this?
IP IP Logged
mpearce
Newbie
Newbie
Avatar

Joined: 22 Mar 2010
Location: United States
Online Status: Offline
Posts: 4
Quote mpearce Replybullet Posted: 06 Apr 2010 at 11:09am
any thoughts on this?
IP IP Logged
bigbloo
Newbie
Newbie
Avatar

Joined: 09 Mar 2010
Location: Canada
Online Status: Offline
Posts: 19
Quote bigbloo Replybullet Posted: 07 Apr 2010 at 3:43am
what are the field names for all these components? I may be able to help - just completed report with 8 cross tab subreports.

Edited by bigbloo - 07 Apr 2010 at 3:43am
Bigbloo
--------------------------------------------------
Information is power only when it's shared.
IP IP Logged
mpearce
Newbie
Newbie
Avatar

Joined: 22 Mar 2010
Location: United States
Online Status: Offline
Posts: 4
Quote mpearce Replybullet Posted: 07 Apr 2010 at 5:43am
Sorry for the long post.  Hopefully all this makes sense.   Thanks in advance for any help.

This is what I need included in the cross tab
       Rows:
               State                     (Group 1 in report)
               Referral Type         (Group 2 in report)
               Facility                   (Group 3 in report)
       Columns:
               Total RNQ                     (Return not qualified)
               Total RHI                      (Returned has insurance)
               Total Approvals             (Patient accounts that we have accepted)
               Total Returns                 (Patient accounts that we have rejected)
               Gross Conversion Rate  (Percentage of accounts approved)
               Net Conversion Rate (percentage of accounts approved minus returns)
               Total Accounts           (per facility, per referral type, per state)

The intersections of the cross tab need to be the results for those calculations.  All of the totals are running totals, all of the rates are formulas that use the running totals.  Both the running totals and the rates are in the Group 3 (Facility) footer.

I have figured out how to get the rows set up.  But since the columns and intersections are completely custom, that part is trickier for me. 


fields in the data source are:

Facility                        (hospital)
Referral Type              (Reason for stay)
Referral                      (date referred to us)
Name
Account Number
MR Number
Status Order
MANumber
Status                        (RNQ, RHI, approvals and returns)
Action Summary
I/O/E
Admission
Discharge
DOB
State
Zip
Applied For
Applied For 2
Applied For 3
Date Applied for 3
Approved For
PEN Date
PEN+ Date
APP Date
BAP Date
BAPD Date
BAPR Date
Financial Class
Fee
Charges
Total Medicaid
Commisisons
Outreach
Charity Status
Diagnosis
Application Date
HospServ
Chief Complaint
Email
< ="Content-" content="text/; charset=utf-8">< name="ProgId" content="Word.">< name="Generator" content="Microsoft Word 11">< name="Originator" content="Microsoft Word 11"><>  
IP IP Logged
mpearce
Newbie
Newbie
Avatar

Joined: 22 Mar 2010
Location: United States
Online Status: Offline
Posts: 4
Quote mpearce Replybullet Posted: 13 Apr 2010 at 5:56am
any thoughts on this?
IP IP Logged
bigbloo
Newbie
Newbie
Avatar

Joined: 09 Mar 2010
Location: Canada
Online Status: Offline
Posts: 19
Quote bigbloo Replybullet Posted: 13 Apr 2010 at 2:22pm
'fraid I'm late for an appointment, but to get you started, first, you need to create formula fields for the intersects. for instance for Total Rnq, create a formula field called TotRnq. The calculation will be "if {status}='RNQ' then 1 else 0"without the outer quotes of course. This will count each record with Status =Rnq, Move that to the insteresect section with the default function of "sum".  I'll try to get back to you later today. Hope this helps.
Bigbloo
--------------------------------------------------
Information is power only when it's shared.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum