Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

derived field in Reportsmith 4.2

Status
Not open for further replies.

walkerj

Technical User
Sep 23, 2008
2
0
0
US
I've created the following derived field to calculate a weekly hours field based on the employee's standard hours in ADP PCPW ver 5.10. It works well but I need to expand it further to include the same calculation when the employee's pay frequency = B. When I attempt to add to this decode formula, it errors. Any help is greatly appreciated!

DECODE("REPORTS"."V_EMP_ALL"."PAYFRQ",'M',"REPORTS"."V_EMP_ALL"."STANDARDHOURS" * 12 / 52)
 
Try something like this:

DECODE("REPORTS"."V_EMP_ALL"."PAYFRQ",
'M',(("REPORTS"."V_EMP_ALL"."STANDARDHOURS" * 12) / 52),
'B',"REPORTS"."V_EMP_ALL"."STANDARDHOURS")

Specializing in ReportSmith Training and Consulting
 
Very helpful. I was able to complete my calculation. Thank you much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top