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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
eddykwan_
Partner - Contributor III
Partner - Contributor III

How to get the stock value from previous row

Hi Everyone,

Please help me to find the formula script based on previous row.

Now I want to calculate the stock for all the months and the formula is :

((currentMonthProduction * Previous month stock) + (current month Sell )) / (Previous month production - current month production)

Let me give an example of how the data is

eddykwan__0-1658130982450.png

 

Please help me to write this script?

Thank you

10 Replies
eddykwan_
Partner - Contributor III
Partner - Contributor III
Author

Hi Jmartineze,

Thanks for your reply, but Previous function only show value in 1 row.

another row is show null value.