I need some help guys, I want to add up the day's payments to generate an accrual. Example: Day 01 $100, Day 2 $200 Day 03 $300
In the amount I want, I would do it like this: on day 1, $100, on day 2, $300, on day 3, $600.
But I don't know how to do it, below in Excel how it was done.This needs to be per month. So it adds up only within the month when the month ends it resets and dnv starts. I don't know if it's clear, but you can try to clarify better.
Excel:
my attempt at PQL
SUM (
CASE WHEN "BSEG"."AUGDT" >="BSEG"."AUGDT" THEN KPI("valor_acumulado") + "BSEG"."DMBTR" ELSE
"BSEG"."DMBTR"
END
)
valor_acumulado = CASE WHEN
"BSEG"."AUGDT" >= "BSEG"."AUGDT" THEN "BSEG"."DMBTR" END