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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Projecting Stock Out

Hi,

I have a problem of simulating a Stock out.

CountryLocationPartnumberDate2013-06-132013-06-142013-06-152013-06-162013-06-172013-06-182013-06-19
SESE10SE80060Inventory69,30,000000
SESE10SE80060Replenishment0,00,000000
SESE10SE80060Simulated Sales303000000
SESE10SE80060Projected Stock39,327729,3277200000
000Inventory000,00,00,00,00,0
000Replenishment000,00,00,00,00,0
000Simulated Sales003030303030
000Projected Stock00-30-60-90-120-150

So I have:

* The current Inventory

* Planned replenishment

* Simulated projected sales based on last 90 days of Sales (set as a variable using set analysis)

Now I can't get the dates to be continous, in fact for all records where replenishment doesn't exist I want to populate the simulated sales per date. Using "show all values" in the dimension tab of the pivot I get the above table as first pivot shown. If I untick the "show all values" option, I get the following table (note that there are records in the main table, eventhough shown as '0' here in replenishment basically replenishment is a very small number):

CountryLocationPartnumerDate2013-06-132013-06-142013-07-05
SESE1012SE80060Inventory69,30,00,0
SESE1012SE80060Replenishment0,00,00,0
SESE1012SE80060Simulated Sales303030
SESE1012SE80060Projected Stock39,327729,32772-20,67228

But basically I want the last 4 rows to be merged into the first 4 rows. For all records where replenisment exists (although 0 in my example above) the projected stock is calculated correctly using RangeSum and Before. But for records that is missing between different replenishment i want to fill out with the dates and the simulated sales.

Any idea on how to proceed ?

Thanks,

David

0 Replies