Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
MMachado
Contributor II
Contributor II

Find date when cumulative demand match actual stock

Hi everyone.

I have two tables: 1) Actual Stock; 2) Demand forecast by month. As below.

I need to now:

 - how long stock cover demand.

 - if it's over demand

 - if don't have demand

How to do this set analysis?

MMachado_0-1595243020442.png

 

Thanks in advance.

Marcelo.

Labels (2)
7 Replies
Kushal_Chawda

What is the logic to get the result column?

MMachado
Contributor II
Contributor II
Author

Hi!how long the actual stock will last?this is the question that Results column need to answer.tks.
Kushal_Chawda

How do you get 3.6 for material A?

MMachado
Contributor II
Contributor II
Author

Actual stock of A = 15demand from Aug= 3 (15 - 3 = 12)demand from Sep = 5 (12 - 5 = 7)demand from Oct = 4 (7 - 4 = 3)demand from Nov = 5 (3 - 5 = 0 ... 2 missed, so didn't complete the 4th month.... so 3.6)
MMachado
Contributor II
Contributor II
Author

Hi

I just noticed that B result is wrong in my example. It's not 4, the right answer is 7, from July until February.

I'll edit the post to correct it.

Kushal_Chawda

I am still confuse. How it is from July untill Feb for material B.  I can see it starts from 9/2019 which is sepatember

MMachado
Contributor II
Contributor II
Author

Considering the actual month of analysis.