Example: Report on Payroll Result Lines on Worker Business Object
This example suggests 1 way you can use calculated fields to sum a specific payroll result line.
You want a report that sums regular wages for completed pay periods. You need to create 2 calculated fields:
- 1 to identify result lines belonging to the pay component for regular wages (Example: Hourly pay).
- 1 to sum the result lines where the pay component is hourly pay.
- Access theCreate Calculated Fieldtask.
- For the first calculated field, enter:
Option Description Field NamePC on Payroll Result Line is Hourly PayBusiness ObjectPayroll Result LineFunctionTrue/False Condition - On theCalculationtab for thePC on Payroll Result Line is Hourly Paycalculated field, enter:
Option Description And/OrAndFieldEarningOperatorIn the selection listComparison TypeValue specified in this filterComparison ValueHourly Pay - Create a second calculated field with these values:
Option Description Field NameSum of Regular Wages for WorkerBusiness ObjectWorkerFunctionSum Related Instances - On theCalculationtab for theSum of Regular Wages for Workercalculated field, enter:
Option Description Related FieldPayroll Result Lines within Date Range (Completed)Sum Instances where condition is truePC on Payroll Result Line is Hourly PayField to SumResult Line Amount - Access theCreate Custom Reporttask and enter these values:
Option Description Report NameHourly Pay for Completed PeriodsReport TypeAdvancedData SourceSelect a data source based on theWorkerbusiness object. Example:All Active and Terminated Workers. - On theColumnstab, add theSum of Regular Wages for Workercalculated field to the report.
The
Sum of Regular Wages for Worker
field on the custom report gives you the sum of the regular wage earnings for workers within the specified dates.