jschill2628
Programmer
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
THANKS in advance!
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
THANKS in advance!