Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
AlejandroJuarez
Contributor III
Contributor III

filling in spaces and cumulative calculation

hi

I hope you can help me, I need to create a customer index based on the increases
where the index is never zero, but I copy the last value, if it has not increased, if it has increased I need to calculate the index by the increase

Captura de Pantalla 2023-12-13 a la(s) 01.04.58.png

 

Labels (1)
1 Reply
hic
Former Employee
Former Employee

If you want to do the accumulation in the script and the data is ordered by client and date, you can try
 
Load 
If(Client=Peek(Client),RangeSum(Peek(Index),Increase), 100) as Index,
*
From Data;
 
If you want to do the accumulation in a chart, you can try method 2 on https://community.qlik.com/t5/Design/Accumulations/ba-p/1466581.