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

Availability of material

Hi

I try to calculated availability of material and I'm not sure how to achieve that.

I have Bill of material for products and production plan, on hand balance for material.

Basically I want to show when material will not be on the stock.

Here are sample data:

Bill of material

ProductMaterialquantity
AM11
AM21
AM30,5
AM42
AM20,5
BM81
BM21
BM50,5
BM42
BM30,5
CM12
CM20,5
CM61
CM31
CM51


Plan

ProductPlanned quantityPlan
A1001
C2002
B5003

 

Stock of material

MaterialOn hand
M1500
M2200
M3600
M41000
M5200
M68000
M8200

 

Output 

PlanProductMaterialBOM QtyPlanned qtytotal qtyOnhand-total
1AM11100100400
1AM21100100100
1AM30,510050550
1AM42100200800
1AM20,51005050
2CM122004000
2CM20,5200100-50
2CM612002007800
2CM31200200350
2CM512002000
3BM81500500-300
3BM21500500-550
3BM50,5500250-250
3BM425001000-200
3BM30,5500250100

 

What formula could help me to see  negative balance  on stock?

0 Replies