Hi everyone,
Hoping someone could help me with the following conundrum I'm wrecking my head around.
I have a query wich is a filtered download of a large data file, containing for each Product_factory combination info about component types annd quantities going "in" and "out" of the production process. The sum of "in" and "out" are not necessarily equal for each product due to production losses.
My goal is the following: to find the sum of all Productx "out" that contain Component A "in". In below example 310.
Is it possible?
Hoping someone could help me with the following conundrum I'm wrecking my head around.
I have a query wich is a filtered download of a large data file, containing for each Product_factory combination info about component types annd quantities going "in" and "out" of the production process. The sum of "in" and "out" are not necessarily equal for each product due to production losses.
My goal is the following: to find the sum of all Productx "out" that contain Component A "in". In below example 310.
Is it possible?
Endproduct_factory | Components | Quantity | In/Out |
Product1_factory1 | A | -40 | in |
Product1_factory1 | B | -200 | in |
Product1_factory1 | C | -60 | in |
Product1_factory1 | Product1 | 310 | out |
Product2_factory1 | B | -100 | in |
Product2_factory1 | C | -100 | in |
Product2_factory1 | Product2 | 205 | out |