×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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

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

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Is there a way to put percentages into a cross tab?

## Is there a way to put percentages into a cross tab?

(OP)
Is there a way to put percentages into a cross tab?

I have a cross tab that currently has the following fields and formulas in it.
Rows: I have the MBO name and the facility name undearneath

In my summarized fields I have the following:
Count of IRIS.Claim
Sum of @ Closed Ind
Avg of @DM Open
Max of @DM Open
Sum of @ Count of 12 day incident
Percentage of Sum of @percentage

{@ Closed Ind} = if isnull ({@Close date}) then 0 else 1
{@Close date} = maximum ([{IRSCLAIM.MISC12_DT}])
{ @DM Open}= {IRSCLAIM.MISC12_DT} - {IRSCLAIM.CREATE_DT}
{@ Count of 12 day incident}= if {@DM Open} < 21 then 1 else 0
{@percentage}= If {@count of 21 day incidents} = 0
Then 0
Else Sum ({@count of 21 day incidents})/Sum ({@Closed Ind})

What I want to do is display the percentage of the number of incidents that were closed out in 21 days or less.

For example
Total Reported Total Classified Avg Days to Classify Max Days to Classify classified within 21 days CLAIM
Total 614 614 5 121 593 100%
Hospital Medical Center Summary 297 297 5 67 288 48%
Cardiopulmonary 1 1 2 2 1 0%
CT 22 22 8 43 21 4%
ED 21 21 4 9 21 3%
Endo 15 15 15 67 11 2%

The percent age should be the following, instead of what they are showing up as
Total 614 593 97%
Hospital Medical Center Summary 297 288 97%
Cardiopulmonary 1 1 100%
CT 22 21 95%
ED 21 21 100%
Endo 15 11 73%

I know I probably have something wrong with my formulas, can someone help me

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!