Hi,
I am using three tables and in one of them I want to use Sumifs formula.
1st table has date of project (the same project is in multiple rows, because using different materials)
2nd table is purchase orders (there is written data for purchases for each material needed. Could have multiple rows of same material)
3rd table is stock level where are no multiple the same rows.
All three tables have material data except in 3rd table there are no duplicate rows.
If current month is January and I have on stock 500 EA of something.
If my project is to be done in March and needs 550 EA of something.
If my Purchase order is to be delivered in February with 70 EA of something.
It should consider I have enough materials.
500+70-550 = 20 EA
Merge3 table is Purchase order table
Merge1 table is Project data
[Material] is from 3rd table where is stock.
This is formula which I've tried:
This 120/90 with days is to get date in column not older than 120 days from project table and not younger than 90 days from project table.
In one part of the formula, I am comparing all three tables for Material (...Merge3[Material],[Material],Merge3[Material],Merge[Material/Asset]...)
This formula gives stock of 0 for each item. Where am I mistaken?
I am using three tables and in one of them I want to use Sumifs formula.
1st table has date of project (the same project is in multiple rows, because using different materials)
2nd table is purchase orders (there is written data for purchases for each material needed. Could have multiple rows of same material)
3rd table is stock level where are no multiple the same rows.
All three tables have material data except in 3rd table there are no duplicate rows.
If current month is January and I have on stock 500 EA of something.
If my project is to be done in March and needs 550 EA of something.
If my Purchase order is to be delivered in February with 70 EA of something.
It should consider I have enough materials.
500+70-550 = 20 EA
Merge3 table is Purchase order table
Merge1 table is Project data
[Material] is from 3rd table where is stock.
This is formula which I've tried:
Code:
=SUMIFS(Merge3[Order Quantity],Merge3[Material],[Material],Merge3[Material],Merge1[Material/Asset],Merge3[Deliv. date],"<="&Merge1[Target Date]-120,Merge3[Deliv. date],">="&Merge1[Target Date]-90)
This 120/90 with days is to get date in column not older than 120 days from project table and not younger than 90 days from project table.
In one part of the formula, I am comparing all three tables for Material (...Merge3[Material],[Material],Merge3[Material],Merge[Material/Asset]...)
This formula gives stock of 0 for each item. Where am I mistaken?