Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
phongnnguyen
Contributor II
Contributor II

cumulative Multiple each value from previous date to present

Hi everybody,

I want to show the result like below example:

DateCashChangeValue
1/1/20181000.1 =100*0.1
2/1/20181200.5 =100*0.1+120*0.5
3/1/20181500.4 =150*0.4+100*0.1+120*0.5

 

Please help me if you have any solution, thanks so much

Labels (1)
1 Reply
tresesco
MVP
MVP

Try like:

Load *,
	 Cash*Change+Alt(Peek(Value),0) as Value
	 Inline [
Date,	Cash,	Change
1/1/2018,	100,	0.1
2/1/2018,	120,	0.5
3/1/2018,	150,	0.4
]