Discussion Board for collaboration on QlikView Scripting.
I have the following table and I need to obtain accumulated information.
In the graph I use the formula:
RangeSum (above (sum (Input-Output), 0, RowNo ()))
and the result obtained seems correct
I would need to perform this operation in the script by creating a table with the díacalendario field and the result I get for each day in the chart.
load * inline [
Dia, Input, Output
1/1/2018, 100, 50
2/1/2018, 50, 50
3/1/2018, 60, 50
4/1/2018, 70, 50
5/1/2018, 80, 50
Input + Alt(Peek('CumInput'),0) as CumInput,
Output + Alt(Peek('CumOutput'),0) as CumOutput,
Input - Output + Alt(Peek('CumDelta'),0) as CumDelta
Order By Dia;
DROP Table T1;
Thank you so much,it worked perfectly