Skip to main content

SUM_TO_CURRENT

Sum a list of numbers in a datasource up to the current row using a startdate

Example Usage

SUM_TO_CURRENT("TimecardSource", "REG", "2021-09-23", :"PayDate")
SUM_TO_CURRENT("TimecardSource", "REG"). // using defaults

Overview

Function signature
SUM_TO_CURRENT(datasource, field, startdate, datefield)

Category
Math

Return data type
float

Arguments

NameDataTypeList Options                          Description
datasourcelistDatasource to iterate over
fieldstringData field to sum
startdatedateDate to start adding
datefieldstringDate field to examine per row