Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: accumulator textitem in data  (Read 1224 times)

Hassan

  • Newbie
  • *
  • Posts: 19
    • View Profile
accumulator textitem in data
« on: July 08, 2019, 01:37:25 PM »
how can I make textitem as an accumulator. how to use function sum in itemtext in data not in footer

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: accumulator textitem in data
« Reply #1 on: July 08, 2019, 02:51:17 PM »
if you need to make some calculations within one record, you can simply add the values in the script something like this $S{$D{datasource.field1}+$D{datasource.field2}}

davidovv

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: accumulator textitem in data
« Reply #2 on: October 28, 2022, 12:39:53 PM »
I think the question was about running sum, i cant find answer on rest of forum, this question is closest and i didn't want to start a new topic.
if you have a datasource that has for example four rows with some value 10, 10, 100, 1, next to value at each row i would like a running sum. *the values for the example would be 10, 20, 120, 121. For each row accumulated values of previous rows.
How to achieve that?