Hello,
Using CRXIr2 w/SQL Svr. I had a similar thread posted, (thread767-1468549)that dealt with a count for a percentage but I'm unsure how to apply to this situation.
What I want is the percentage of units used just like a pivot table.
Cross-tab: Treatment Codes Authorized and Used by Agency
Row#1 Agency
Row#2 Treatment Code
Sum#1 Sum of Command.Authorized
Sum#2 Sum of Command.UnitsUsed
?#3 % of UnitsUsed
So for each Treatment Code and Summary Totals, the % of Units Used would be determined by UnitsUsed/Authorized.
Example:
[tt]
ABC GroupTherapy 10
ABC GroupTherapy 5
ABC GroupTherapy 50%
ABC Individ 4
ABC Individ 3
ABC Individ 75%
TotalAuth'd 14
TotalUsed 8
%Used 57%
[/tt]
I was trying to use variation of @%Used
(((Sum({Command.UnitsUsed})/Sum({Command.Authorized}))*100)) which I used for my group summary but summing a sum isn't correct.
Your time is appreciated.
Using CRXIr2 w/SQL Svr. I had a similar thread posted, (thread767-1468549)that dealt with a count for a percentage but I'm unsure how to apply to this situation.
What I want is the percentage of units used just like a pivot table.
Cross-tab: Treatment Codes Authorized and Used by Agency
Row#1 Agency
Row#2 Treatment Code
Sum#1 Sum of Command.Authorized
Sum#2 Sum of Command.UnitsUsed
?#3 % of UnitsUsed
So for each Treatment Code and Summary Totals, the % of Units Used would be determined by UnitsUsed/Authorized.
Example:
[tt]
ABC GroupTherapy 10
ABC GroupTherapy 5
ABC GroupTherapy 50%
ABC Individ 4
ABC Individ 3
ABC Individ 75%
TotalAuth'd 14
TotalUsed 8
%Used 57%
[/tt]
I was trying to use variation of @%Used
(((Sum({Command.UnitsUsed})/Sum({Command.Authorized}))*100)) which I used for my group summary but summing a sum isn't correct.
Your time is appreciated.