aggCumSum

Returns the total sum of data as it grows with series.

Data

{
  "departments": [
    { "type": "1", "people": [{ "salary": 1000 }] },
    { "type": "2", "people": [{ "salary": 500 }, { "salary": 200 }] },
    { "type": "4", "people": [{ "salary": 1500 }] },
    { "type": "5", "people": [{ "salary": 200 }] }
  ]
}

The cumulative total of salaries by departments: {d.departments[i].people[].salary:cumSum} {d.departments[i+1]}

The cumulative total of salaries by departments and by people: {d.departments[i].people[i].salary:cumSum} {d.departments[i+1].people[i+1]}

Last updated