Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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
]