Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dwivedi_shashan
Contributor II
Contributor II

Compute the new column with the previous record value

Hi, 

 

I am new to qlikview and not able to achieve below result.

Basically I want to replace A value with the sum of A+B in previous record. 

I am aware of previous and preceding load but struggling to achieve the result. Please help. 

Old data                           New data

A         B                                A       B

5          2                                5         2

5           3                                7         3

5           4                               10       4

5           2                                14       2

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Will this help you?

[New data]:
NoConcatenate Load
ALT(peek(A)+Peek(B), A) as A,
B
Resident
[Old data];
Drop table [Old data];

View solution in original post

3 Replies
Vegar
MVP
MVP

Will this help you?

[New data]:
NoConcatenate Load
ALT(peek(A)+Peek(B), A) as A,
B
Resident
[Old data];
Drop table [Old data];
Robison1B
Contributor
Contributor

Hey, thanks for answering, i was also stuck at this point, your answer helped me. Thanks a lot krogerfeedback!

dwivedi_shashan
Contributor II
Contributor II
Author

Thanks! It helped.