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

how to calculate opening stock

Hi  All,

I have a scenario

Current month opening stock would be Total_stock for max of  year-month

i didn't understand this requirement

please anyone can explain meee

Thanks in Advance..

2 Replies
fred_s
Partner - Creator III
Partner - Creator III

Hi Paul,

Can you try this one

fred_s
Partner - Creator III
Partner - Creator III

After loading your data, I've loaded your data again with an order by Year-Month and used the previous() function to get the lastmonth stock, saved as new field "Ostock".