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

Previous Year Value Calculation

Hi Everyone,

I have data in this manner :

YearProductSales
2000P1100
2001P1189
2002P1154
2003P1145
2000P267
2001P287
2002P245
2003P267

I need to have one more Column to have "Previous Year Sales" for Year and Product.

Final Result will be like this :

YearProductSalesPrevious_Year_Sales
2000P1100-
2001P1189100
2002P1154189
2003P1145154
2000P267-
2001P28767
2002P24587
2003P26745

How can I achieve this ? Kindly help

Regards,

Kumar

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Front-end - use Above() function

Script - use Peek() function

Update: PFA

View solution in original post

2 Replies
tresesco
MVP
MVP

Front-end - use Above() function

Script - use Peek() function

Update: PFA

Not applicable
Author

Thanks Tresesco