Question : I want to Total a Formula Field

Hi everyone,

In  Crystal Reports I have determined a percentage of work orders handled by a user by this formula:

{GetCallIssueByTechResolution;1.Expr1} / Sum ({GetCallIssueByTechResolution;1.Expr1})

Expr1 is determined with a stored procedure that is taking the amount of time entered in the database
and assigning minutes worked on an issue.

For John Doe:  30 minutes was worked on work order 8888
                        45 minutes was worked on work order 9999
I have dtermined the total minutes worked for this gentlemen as 75 minutes.

The formula above takes 30/75 = 0.40
                                        45/75 = 0.60
I need to total the 0.40 + 0.60 to get 100%

How do I write a formula to sum the two percentage numbers 0.40 + 0.60 to get 100%

jjc9809

Answer : I want to Total a Formula Field

I agree.  If that is not the case for some reason, you can use a formula like this to display the detail percents and calculate the total

Global NumberVar TotalPercent;
Local NumberVar ThisPercent;

ThisPercent := {GetCallIssueByTechResolution;1.Expr1} / Sum ({GetCallIssueByTechResolution;1.Expr1});
TotalPercent := TotalPercent + ThisPercent ;
ThisPercent

mlmcc
Random Solutions  
 
programming4us programming4us