Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
jli87
Partner - Contributor II
Partner - Contributor II

Rolling Balance

Header 1Header 2Header 3Header 4Header 5Header 6
ProductDateOrder QtyBegin InventoryAdjusted Inventory
Apple10/08/182050060
Apple10/15/183045
Apple10/22/18530
Orange10/08/182560035
Orange10/15/181540
Banana10/08/183565025
Banana10/15/186020

I am having issues with creating a table with beginning inventory for each week. I have a table similar to the one above with only a specific week with a beginning inventory. I need to factor in the order qty and adjusted inventory for each week to get the beginning inventory for the next week like something on the bottom. Thank you in advance.

Header 1Header 2Header 3Header 4Header 5
ProductDateOrder QtyBegin InventoryAdjusted Inventory
Apple10/08/182050060
Apple10/15/183054045
Apple10/22/18555530
Orange10/08/182560035
Orange10/15/181561040
Banana10/08/183565025
Banana10/15/186064020
1 Solution

Accepted Solutions
uacg0009
Partner - Specialist
Partner - Specialist

Yes,you can try to use peek() function to change the above() function in back-end.

the sort is important.

Aiolos

View solution in original post

3 Replies
uacg0009
Partner - Specialist
Partner - Specialist

Hi Jia Li,

I think below is what you want, please see the attachment, thanks.

Rolling Balance.PNG

Aiolos Zhao

jli87
Partner - Contributor II
Partner - Contributor II
Author

Yes, that's how I want it to look but can this be done from the script end?

uacg0009
Partner - Specialist
Partner - Specialist

Yes,you can try to use peek() function to change the above() function in back-end.

the sort is important.

Aiolos